From 219735e510275fec48e1a5421d84ab2c55bef653 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 06:31:31 +0000 Subject: [PATCH] Decompile fn_24372 (WindowProc) Batch #17996 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_24372 WindowProc: logic confirmed by peer review Peer-reviewed-by: eAthena, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- .../Client/Application/ApplicationWindow.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Source/Client/Application/ApplicationWindow.cpp b/Source/Client/Application/ApplicationWindow.cpp index caf153e51..9743967a0 100644 --- a/Source/Client/Application/ApplicationWindow.cpp +++ b/Source/Client/Application/ApplicationWindow.cpp @@ -128,22 +128,23 @@ LRESULT CALLBACK WindowProc(HWND window, UINT message, WPARAM wParam, LPARAM lPa g_mouse.active = 1; } - if (!GetRenderSystemHolder()->IsWindowed()) { + if (GetRenderSystemHolder()->IsWindowed()) { if (g_isAppActive == 1) { g_restoreSurfaces = 1; + ShowWindow(window, SW_MAXIMIZE); + return 1; + } + CWebBrowser* browser = g_windowMgr.FindBrowser(reinterpret_cast(lParam)); + if (browser && browser->MatchesWindow(reinterpret_cast(lParam))) { + SetApplicationActive(1); + } else { + ShowWindow(window, SW_MINIMIZE); } return 1; } + if (g_isAppActive == 1) { g_restoreSurfaces = 1; - ShowWindow(window, SW_MAXIMIZE); - return 1; - } - CWebBrowser* browser = g_windowMgr.FindBrowser(reinterpret_cast(lParam)); - if (browser && browser->MatchesWindow(reinterpret_cast(lParam))) { - SetApplicationActive(1); - } else { - ShowWindow(window, SW_MINIMIZE); } return 1; }