diff --git a/Source/Render/Text/TextContext.cpp b/Source/Render/Text/TextContext.cpp index fe8de3f1..e45f576c 100644 --- a/Source/Render/Text/TextContext.cpp +++ b/Source/Render/Text/TextContext.cpp @@ -129,12 +129,22 @@ void TextContext::SetColor(COLORREF color) { } // OFFSET: 0x00550130 -// OFFSET: 0x00550150 -void TextContext::SetBackground(COLORREF color, int mode) { +// FUNCTION: fn_01967 +void TextContext::SetBackgroundColor(COLORREF color) { SetBkColor(this->m_dc, color); +} + +// OFFSET: 0x00550150 +// FUNCTION: fn_01968 +void TextContext::SetBackgroundMode(int mode) { SetBkMode(this->m_dc, mode); } +void TextContext::SetBackground(COLORREF color, int mode) { + this->SetBackgroundColor(color); + this->SetBackgroundMode(mode); +} + // OFFSET: 0x00ACD9B0 // FUNCTION: fn_17772 unsigned TextContext::CodePage(unsigned charset) { diff --git a/Source/Render/Text/TextContext.h b/Source/Render/Text/TextContext.h index c7007f5a..f0412ee1 100644 --- a/Source/Render/Text/TextContext.h +++ b/Source/Render/Text/TextContext.h @@ -19,6 +19,8 @@ public: ~TextContext(); void SetFont(int family, int height, unsigned char bold, unsigned char italic); void SetColor(COLORREF color); + void SetBackgroundColor(COLORREF color); + void SetBackgroundMode(int mode); void SetBackground(COLORREF color, int mode); SIZE Measure(const char* text, int bytes); void Draw(int x, int y, const char* text, int bytes);