From d5ec4783d83da105890c89bcb979cdaba1b5a77e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 08:20:20 +0000 Subject: [PATCH] Decompile fn_14655 (CUIListItem::Paint) Batch #11492 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_14655 CUIListItem::Paint: logic confirmed by peer review Peer-reviewed-by: KWDev, dori, cremane, raiken Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIControl.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/Source/UI/Window/UIControl.cpp b/Source/UI/Window/UIControl.cpp index 25190672..e92497bc 100644 --- a/Source/UI/Window/UIControl.cpp +++ b/Source/UI/Window/UIControl.cpp @@ -3617,18 +3617,21 @@ CUIListItem::CUIListItem() : CUIControl(), images(), selected(0), disabledImage( // FUNCTION: fn_14655 void CUIListItem::Paint() { this->ClearSurface(0xFFFF00FF); - if (!this->frozen) { - if (!this->images[this->selected]) { - if (this->selected == 1) { - this->ClearSurface(0xFFDECE); - } else if (this->selected == 2) { - this->ClearSurface(0xEF9C73); - } - } else { - this->DrawBitmap(0, 0, &this->images[this->selected]->image, false); + if (this->frozen) { + if (this->disabledImage) { + this->DrawBitmap(0, 0, &this->disabledImage->image, false); } - } else if (this->disabledImage) { - this->DrawBitmap(0, 0, &this->disabledImage->image, false); + } else if (!this->images[this->selected]) { + switch (this->selected) { + case 1: + this->ClearSurface(0xFFDECE); + break; + case 2: + this->ClearSurface(0xEF9C73); + break; + } + } else { + this->DrawBitmap(0, 0, &this->images[this->selected]->image, false); } }