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:
ragnarok-clanker 2026-11-07 12:41:14 +00:00
commit 653a6d2d1c

View file

@ -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);
}