mirror of
https://github.com/yawut/SDL.git
synced 2026-08-03 00:40:26 -05:00
SDL12: Disable screensaver in windib driver.
This commit is contained in:
parent
7a8a6549fb
commit
7ea54764c6
|
|
@ -160,6 +160,15 @@ LONG
|
|||
}
|
||||
return(0);
|
||||
|
||||
#if defined(SC_SCREENSAVE) && defined(SC_MONITORPOWER)
|
||||
case WM_SYSCOMMAND: {
|
||||
if ((wParam&0xFFF0)==SC_SCREENSAVE ||
|
||||
(wParam&0xFFF0)==SC_MONITORPOWER)
|
||||
return(0);
|
||||
}
|
||||
/* Fall through to default processing */
|
||||
#endif /* SC_SCREENSAVE && SC_MONITORPOWER */
|
||||
|
||||
default: {
|
||||
/* Only post the event if we're watching for it */
|
||||
if ( SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user