From 653a6d2d1c7dff30a995b9507198cb6fe3ec82cd Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 12:41:14 +0000 Subject: [PATCH] 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). --- Source/UI/Buttons/UIRadioBtn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/UI/Buttons/UIRadioBtn.cpp b/Source/UI/Buttons/UIRadioBtn.cpp index 658e5d966..df46161a4 100644 --- a/Source/UI/Buttons/UIRadioBtn.cpp +++ b/Source/UI/Buttons/UIRadioBtn.cpp @@ -21,7 +21,7 @@ void UIRadioBtn::Paint() { } if (bitmap) { - this->DrawBitmap(0, static_cast((this->geometry.height - bitmap->image.height) * 0.5f), &bitmap->image, true); + this->DrawBitmap(0, static_cast((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(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); }