SDL12: Disable screensaver in windib driver.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40727
This commit is contained in:
parent
e78adbc226
commit
096219e44c
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue