From 21e87ecbb4dab2ddabe2d84f726bd714cdff9b25 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 14:40:32 +0000 Subject: [PATCH] Decompile fn_12094 (UIFrameWnd::DrawItemName) Batch #16093 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_12094 UIFrameWnd::DrawItemName: logic confirmed by peer review Peer-reviewed-by: alisonrag, youko, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/WindowOverlay.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/UI/WindowOverlay.cpp b/Source/UI/WindowOverlay.cpp index dd026e84c..aeec952ae 100644 --- a/Source/UI/WindowOverlay.cpp +++ b/Source/UI/WindowOverlay.cpp @@ -164,19 +164,19 @@ int UIFrameWnd::DrawFittedItemName(int x, int y, const ITEM_INFO* item, std::uin // OFFSET: 0x008D17C0 // FUNCTION: fn_12094 int UIFrameWnd::DrawItemName(int x, int y, int width, const ITEM_INFO* item, int, int family, int height) { - int highlightColor = 0; - std::vector breaks; char buffer[256] = {}; - char* cursor = buffer; - std::size_t remaining = sizeof(buffer); char* highlight = nullptr; + char* cursor = buffer; + std::vector breaks; + std::size_t remaining = sizeof(buffer); + int highlightColor; this->BuildItemName(item, &highlightColor, &breaks, &cursor, &remaining, &highlight, 1, 0); std::uint32_t color = ItemCardColor(item); if (color == 0x00ADFF2F) { color = 0x00669900; } - color = (color >> 16 & 0xFF) | (color & 0x0000FF00) | ((color & 0xFF) << 16); + color = (color >> 16 & 0xFF) | ((color & 0xFF) << 16) | (color & 0x0000FF00); const ItemNameTextInfo info = {x, y, height, family}; this->DrawItemNameText(&info, buffer, highlight, color, static_cast(highlightColor), width, &breaks);