comparison src/video/win32/SDL_win32events.c @ 3032:77c3e67f0740

Fixed Visual C++ build
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jan 2009 08:46:28 +0000
parents 54fac87e1f34
children 085e46423377
comparison
equal deleted inserted replaced
3031:86918831452f 3032:77c3e67f0740
576 case WM_SYSCOMMAND: 576 case WM_SYSCOMMAND:
577 { 577 {
578 /* Don't start the screensaver or blank the monitor in fullscreen apps */ 578 /* Don't start the screensaver or blank the monitor in fullscreen apps */
579 if ((wParam & 0xFFF0) == SC_SCREENSAVE || 579 if ((wParam & 0xFFF0) == SC_SCREENSAVE ||
580 (wParam & 0xFFF0) == SC_MONITORPOWER) { 580 (wParam & 0xFFF0) == SC_MONITORPOWER) {
581 SDL_VideoData *videodata = data->videodata; 581 if (SDL_GetVideoDevice()->suspend_screensaver) {
582 if (videodata->suspend_screensaver) {
583 return (0); 582 return (0);
584 } 583 }
585 } 584 }
586 } 585 }
587 break; 586 break;