From ef68cf0fb5926970f227d2e888cff429ac83a08e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 04:29:02 +0000 Subject: [PATCH] Decompile fn_14419 (CUIDropDownBox::Paint) Batch #11710 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_14419 CUIDropDownBox::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Lists/UIDropDownBox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Lists/UIDropDownBox.cpp b/Source/UI/Lists/UIDropDownBox.cpp index 052669f6..e8195164 100644 --- a/Source/UI/Lists/UIDropDownBox.cpp +++ b/Source/UI/Lists/UIDropDownBox.cpp @@ -54,11 +54,11 @@ void CUIDropDownBox::Attach(UIWindow* value, UIWindow* child) { // OFFSET: 0x009E34D0 // FUNCTION: fn_14419 void CUIDropDownBox::Paint() { - if (this->geometry.surface) { - this->geometry.surface->Fill(nullptr, 0xFFFFFFFFu); - } + const std::uint32_t background = 0xFFFFFFFFu; + this->ClearSurface(background); - DrawRectangleBorder(*this, 0, 0, this->geometry.width, this->geometry.height, 0x00C6C6C6u); + const std::uint32_t border = 0x00C6C6C6u; + DrawRectangleBorder(*this, 0, 0, this->geometry.width, this->geometry.height, border); } // OFFSET: 0x00AA27B0