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:
parent
b027cd040e
commit
219735e510
1 changed files with 10 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue