mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +00:00
[MAZESCR] Avoid (DLGPROC) cast, fix a typo (#5694)
May help a bit with x64. Co-authored-by: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
This commit is contained in:
parent
e69d2e8b89
commit
29c0e23fd4
1 changed files with 3 additions and 7 deletions
|
@ -632,7 +632,7 @@ static BOOL OnCreate(HWND hWnd, LPCREATESTRUCT lpCreateStruct)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI AboutProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam)
|
INT_PTR CALLBACK AboutProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam)
|
||||||
{
|
{
|
||||||
switch(message){
|
switch(message){
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
@ -684,7 +684,6 @@ LRESULT CALLBACK ScreenSaverProc(
|
||||||
|
|
||||||
start_timer(hWnd, solve_delay);
|
start_timer(hWnd, solve_delay);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
if (!solve_maze(hWnd))
|
if (!solve_maze(hWnd))
|
||||||
{
|
{
|
||||||
|
@ -696,7 +695,6 @@ LRESULT CALLBACK ScreenSaverProc(
|
||||||
start_timer(hWnd, post_solve_delay);
|
start_timer(hWnd, post_solve_delay);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
initialize_maze();
|
initialize_maze();
|
||||||
|
|
||||||
|
@ -711,14 +709,12 @@ LRESULT CALLBACK ScreenSaverProc(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_DESTROY: // message: window being destroyed
|
case WM_DESTROY: // message: window being destroyed
|
||||||
DeleteObject(hBrushLiving);
|
DeleteObject(hBrushLiving);
|
||||||
DeleteObject(hBrushDead);
|
DeleteObject(hBrushDead);
|
||||||
ReleaseDC(hWnd, hDC);
|
ReleaseDC(hWnd, hDC);
|
||||||
break;
|
break;
|
||||||
|
default: // Passes it on if unprocessed
|
||||||
default: // Passes it on if unproccessed
|
|
||||||
return DefScreenSaverProc(hWnd, message, wParam, lParam);
|
return DefScreenSaverProc(hWnd, message, wParam, lParam);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -757,7 +753,7 @@ BOOL WINAPI ScreenSaverConfigureDialog(HWND hWnd, UINT message, WPARAM wparam, L
|
||||||
EndDialog(hWnd, TRUE);
|
EndDialog(hWnd, TRUE);
|
||||||
break;
|
break;
|
||||||
case IDABOUT:
|
case IDABOUT:
|
||||||
DialogBox(hMainInstance, MAKEINTRESOURCE(IDD_DLG_ABOUT), hWnd, (DLGPROC)AboutProc);
|
DialogBox(hMainInstance, MAKEINTRESOURCE(IDD_DLG_ABOUT), hWnd, AboutProc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WM_HSCROLL:
|
case WM_HSCROLL:
|
||||||
|
|
Loading…
Reference in a new issue