From aff4f25d9b46d7788ee108c8c3722a2eec596dea Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 09:52:50 +0000 Subject: [PATCH] Decompile fn_10555 (UIBartermarketWnd::Paint) Batch #18128 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_10555 UIBartermarketWnd::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Shop/UIBartermarketWnd.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/UI/Shop/UIBartermarketWnd.cpp b/Source/UI/Shop/UIBartermarketWnd.cpp index 3044d35d9..0ee8fddb2 100644 --- a/Source/UI/Shop/UIBartermarketWnd.cpp +++ b/Source/UI/Shop/UIBartermarketWnd.cpp @@ -1757,9 +1757,10 @@ void UIBartermarketWnd::Paint() { unsigned green; unsigned blue; SkinPaletteChannels(ResourceMgr::Instance(), 2, 2, red, green, blue); - this->FillRegion(20, 17, (this->geometry.width - 60) % 32, this->geometry.height - this->bottomPadding - 17, RGB(red, green, blue)); - const int contentHeight = this->geometry.height - this->bottomPadding - 17; - this->FillRegion(20, contentHeight / 32 * 32 + 17, this->geometry.width - 24, contentHeight % 32, RGB(red, green, blue)); + const int rightRemainder = (this->geometry.width - 60) % 32; + this->FillRegion(20, 17, rightRemainder, this->geometry.height - this->bottomPadding - 17, RGB(red, green, blue)); + const int bottomRemainder = (this->geometry.height - this->bottomPadding - 17) % 32; + this->FillRegion(20, (this->geometry.height - this->bottomPadding - 17) / 32 * 32 + 17, this->geometry.width - 24, bottomRemainder, RGB(red, green, blue)); this->DrawButtonBar(2, 0, 1); const int columns = (this->geometry.width - 40) / 32;