From 876492224d722ca08d26dbb15ce064352dfcb587 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 15:31:41 +0000 Subject: [PATCH] Decompile fn_11266 (UIBasicItemCtrl::DrawItemIcon) Batch #17391 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_11266 UIBasicItemCtrl::DrawItemIcon: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, alisonrag, kyoshi, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Lists/UIScrollBar.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/UI/Lists/UIScrollBar.cpp b/Source/UI/Lists/UIScrollBar.cpp index 06ebafe4d..6eb338bb0 100644 --- a/Source/UI/Lists/UIScrollBar.cpp +++ b/Source/UI/Lists/UIScrollBar.cpp @@ -823,20 +823,17 @@ void UIBasicItemCtrl::DrawItemIcon(int x, int y, int, bool compact) { const std::string count = FormatOwnedString("%d", this->m_item.quantity); FontCache& fonts = g_fontCache; - int textY; if (compact) { - textY = y + 20; - x += 16; + this->DrawTextAt(x + 16, y + 20, count.c_str(), 0, 0, 11, 0, 0, 0); } else { - textY = y + 15; + const int textY = y + 15; x += this->m_item.quantity < 1000 ? 14 : 0; this->DrawTextAt(x + 1, textY, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0); this->DrawTextAt(x - 1, textY, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0); this->DrawTextAt(x, y + 16, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0); this->DrawTextAt(x, y + 14, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0); + this->DrawTextAt(x, textY, count.c_str(), 0, 0, 11, 0, 0, 0); } - - this->DrawTextAt(x, textY, count.c_str(), 0, 0, 11, 0, 0, 0); } // OFFSET: 0x008900D0