From db238640dcef2d40d4e768f8baae524ba9e8e5aa Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 05:02:07 +0000 Subject: [PATCH] Decompile fn_11347 (UIChatHisBox2::Paint) Batch #17869 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_11347 UIChatHisBox2::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, codeplay, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Buttons/UITextButton.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/UI/Buttons/UITextButton.cpp b/Source/UI/Buttons/UITextButton.cpp index c8b26b98f..f5be07fd2 100644 --- a/Source/UI/Buttons/UITextButton.cpp +++ b/Source/UI/Buttons/UITextButton.cpp @@ -3444,14 +3444,12 @@ void UIChatHisBox2::Paint() { FontCache& fonts = g_fontCache; for (int row = 0; top + row < static_cast(end); ++row) { const int index = top + row; - int x; if (g_serviceType == 19 && g_tipOfTheDayEnglish) { const int width = this->TextWidth(this->lines[index].c_str(), 0, 0, 12, 0, 0); - x = this->geometry.width - width - 19; + this->DrawTextAt(this->geometry.width - width - 19, this->lineHeight * row + 3, this->lines[index].c_str(), 0, 0, 12, this->lineColors[index], 0, 0); } else { - x = 2; + this->DrawTextAt(2, this->lineHeight * row + 3, this->lines[index].c_str(), 0, 0, 12, this->lineColors[index], 0, 0); } - this->DrawTextAt(x, this->lineHeight * row + 3, this->lines[index].c_str(), 0, 0, 12, this->lineColors[index], 0, 0); this->PlaceNaviLinks(index); this->PlaceItemTags(index); }