From a9c193f3cd0eb4cee174dc2779e36ce538753ac8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 03:28:59 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Window/UIWindow.cpp Batch #12948 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_03587 UINavigationRuideWnd::Paint: byte-identical - fn_03639 UINavigationV4Wnd::Slot11: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Window/UIWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/UI/Window/UIWindow.cpp b/Source/UI/Window/UIWindow.cpp index d8c5ccbf..5325150f 100644 --- a/Source/UI/Window/UIWindow.cpp +++ b/Source/UI/Window/UIWindow.cpp @@ -2038,7 +2038,7 @@ void UINavigationV4Wnd::Slot11() { info->width = this->geometry.width; this->info->height = this->geometry.height; - const int margin = this->info->expanded ? 272 : 228; + const int margin = !this->info->expanded ? 228 : 272; const int maximumX = g_renderer->viewport.width - margin; if (maximumX < this->geometry.x) { this->geometry.x = maximumX; @@ -2949,8 +2949,7 @@ void UINavigationRuideWnd::Slot15(int width, int) { // FUNCTION: fn_03587 void UINavigationRuideWnd::Paint() { this->FillRegion(0, 0, 272, 338, 0xCCCCCC); - const int titleHeight = this->DrawTitleBar(true, LookupMessage(3204), 0); - this->DrawPanelBackground(titleHeight, 0, ""); + this->DrawPanelBackground(this->DrawTitleBar(true, LookupMessage(3204), 0), 0, ""); this->DrawButtonBar(0, 0, 1); }