Decompile 2 functions in Source/Render/Text/TextContext.cpp, Source/Render/Text/TextContext.h
Batch #1115 by Kisuka: 0 byte-identical, 2 confirmed by peer review. - fn_01967 TextContext::SetBackgroundColor: logic confirmed by peer review - fn_01968 TextContext::SetBackgroundMode: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
cc5f17c4c4
commit
ea6e4e5492
2 changed files with 14 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue