Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibevents.c @ 726:5429a06aa816
SDL12: Disable screensaver in windib driver.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 30 Sep 2003 07:16:20 +0000 |
parents | ab0656314eef |
children | b8d311d90021 |
comparison
equal
deleted
inserted
replaced
725:9ee05fe728df | 726:5429a06aa816 |
---|---|
157 } | 157 } |
158 posted = SDL_PrivateKeyboard(SDL_RELEASED, | 158 posted = SDL_PrivateKeyboard(SDL_RELEASED, |
159 TranslateKey(wParam,HIWORD(lParam),&keysym,0)); | 159 TranslateKey(wParam,HIWORD(lParam),&keysym,0)); |
160 } | 160 } |
161 return(0); | 161 return(0); |
162 | |
163 #if defined(SC_SCREENSAVE) && defined(SC_MONITORPOWER) | |
164 case WM_SYSCOMMAND: { | |
165 if ((wParam&0xFFF0)==SC_SCREENSAVE || | |
166 (wParam&0xFFF0)==SC_MONITORPOWER) | |
167 return(0); | |
168 } | |
169 /* Fall through to default processing */ | |
170 #endif /* SC_SCREENSAVE && SC_MONITORPOWER */ | |
162 | 171 |
163 default: { | 172 default: { |
164 /* Only post the event if we're watching for it */ | 173 /* Only post the event if we're watching for it */ |
165 if ( SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE ) { | 174 if ( SDL_ProcessEvents[SDL_SYSWMEVENT] == SDL_ENABLE ) { |
166 SDL_SysWMmsg wmmsg; | 175 SDL_SysWMmsg wmmsg; |