Decompile fn_10814 (UIRadioBtn::Paint)
Batch #14478 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_10814 UIRadioBtn::Paint: logic confirmed by peer review Peer-reviewed-by: secret, Toshiro, raiken Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
dc971e40e0
commit
653a6d2d1c
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ void UIRadioBtn::Paint() {
|
|||
}
|
||||
|
||||
if (bitmap) {
|
||||
this->DrawBitmap(0, static_cast<int>((this->geometry.height - bitmap->image.height) * 0.5f), &bitmap->image, true);
|
||||
this->DrawBitmap(0, static_cast<int>((this->geometry.height - bitmap->image.height) * 0.5f), bitmap, true);
|
||||
}
|
||||
|
||||
const int textHeight = this->TextHeight(this->text.c_str(), 0, 0, this->fontHeight, 0, 0);
|
||||
|
|
@ -41,7 +41,7 @@ void UIRadioBtn::Paint() {
|
|||
}
|
||||
|
||||
CBitmapRes* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(name)));
|
||||
this->DrawBitmap(0, 0, bitmap ? &bitmap->image : nullptr, false);
|
||||
this->DrawBitmap(0, 0, bitmap, false);
|
||||
const std::uint32_t color = this->enabled != 0 ? this->textColor : 0xB5B5B5;
|
||||
this->DrawTextAt(13, 0, this->text.c_str(), 0, 0, this->fontHeight, color, 0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue