diff 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
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c	Mon Jan 12 08:28:17 2009 +0000
+++ b/src/video/win32/SDL_win32events.c	Mon Jan 12 08:46:28 2009 +0000
@@ -578,8 +578,7 @@
             /* Don't start the screensaver or blank the monitor in fullscreen apps */
             if ((wParam & 0xFFF0) == SC_SCREENSAVE ||
                 (wParam & 0xFFF0) == SC_MONITORPOWER) {
-                SDL_VideoData *videodata = data->videodata;
-                if (videodata->suspend_screensaver) {
+                if (SDL_GetVideoDevice()->suspend_screensaver) {
                     return (0);
                 }
             }