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).
This commit is contained in:
ragnarok-clanker 2026-11-12 06:31:31 +00:00
commit 219735e510

View file

@ -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<HWND>(lParam));
if (browser && browser->MatchesWindow(reinterpret_cast<HWND>(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<HWND>(lParam));
if (browser && browser->MatchesWindow(reinterpret_cast<HWND>(lParam))) {
SetApplicationActive(1);
} else {
ShowWindow(window, SW_MINIMIZE);
}
return 1;
}