hw/xwin: Remove unnecessary and incorrect HWND casts
Signed-off-by: Marc Haesen <marha@users.sourceforge.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
34932cef6c
commit
3752a81580
|
@ -1061,15 +1061,13 @@ winMultiWindowXMsgProc(void *pArg)
|
|||
(pProcArg->pDisplay, pProcArg->dwScreen, TRUE)) {
|
||||
if (!g_fAnotherWMRunning) {
|
||||
g_fAnotherWMRunning = TRUE;
|
||||
SendMessage(*(HWND *) pProcArg->hwndScreen, WM_UNMANAGE, 0,
|
||||
0);
|
||||
SendMessage(pProcArg->hwndScreen, WM_UNMANAGE, 0, 0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (g_fAnotherWMRunning) {
|
||||
g_fAnotherWMRunning = FALSE;
|
||||
SendMessage(*(HWND *) pProcArg->hwndScreen, WM_MANAGE, 0,
|
||||
0);
|
||||
SendMessage(pProcArg->hwndScreen, WM_MANAGE, 0, 0);
|
||||
}
|
||||
}
|
||||
Sleep(500);
|
||||
|
|
|
@ -825,7 +825,7 @@ winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
/* Prevent the mouse wheel from stalling when another window is minimized */
|
||||
if (HIWORD(wParam) == 0 && LOWORD(wParam) == WA_ACTIVE &&
|
||||
(HWND) lParam != NULL && (HWND) lParam != (HWND) GetParent(hwnd))
|
||||
(HWND) lParam != NULL && (HWND) lParam != GetParent(hwnd))
|
||||
SetFocus(hwnd);
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user