From 8dca2eb5f7cdf4fec7dd7e6092745feb86ad47d0 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sun, 1 Nov 2026 06:56:09 +0000 Subject: [PATCH] Decompile fn_12234 (UINotifyItemObtainWnd::Paint) Batch #9320 by secret: 0 byte-identical, 1 confirmed by peer review. - fn_12234 UINotifyItemObtainWnd::Paint: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, Bielhp, seumadruga Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Acceptance/UIChooseSellBuyWnd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index 81e39b87..bd62871b 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -5775,12 +5775,12 @@ void UINotifyItemObtainWnd::Paint() { } const int kind = this->m_kind; - const int width = this->geometry.width; + const int width = this->geometry.width - 49; char text[256]; - char* cursor = text; - std::size_t remaining = sizeof(text); char* highlight = nullptr; + char* cursor = text; std::vector breaks; + std::size_t remaining = sizeof(text); int highlightColor; this->BuildItemName(&this->m_item, &highlightColor, &breaks, &cursor, &remaining, &highlight, 1, 0); @@ -5791,7 +5791,7 @@ void UINotifyItemObtainWnd::Paint() { breaks.push_back(cursor); } - this->DrawItemNameSegments(kind == 0 ? 41 : 13, 10, width - 49, breaks, text, highlight, highlightColor, 0, 0, 12); + this->DrawItemNameSegments(kind == 0 ? 41 : 13, 10, width, breaks, text, highlight, highlightColor, 0, 0, 12); } // OFFSET: 0x008EB010