From 796693d708ddb4e12d4b6fefe3088a54a2b4ea97 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 9 May 2006 07:50:28 +0000 Subject: [PATCH] More compile fixes for systems without the DPMS extension --- src/video/dga/SDL_dgavideo.h | 3 +-- src/video/x11/SDL_x11events.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/dga/SDL_dgavideo.h b/src/video/dga/SDL_dgavideo.h index a2ef724c0..36d5af295 100644 --- a/src/video/dga/SDL_dgavideo.h +++ b/src/video/dga/SDL_dgavideo.h @@ -25,6 +25,7 @@ #define _SDL_dgavideo_h #include +#include #include "SDL_mouse.h" #include "SDL_mutex.h" @@ -93,9 +94,7 @@ struct SDL_PrivateVideoData { /* Screensaver settings */ int screensaver_timeout; -#if SDL_VIDEO_DRIVER_X11_DPMS BOOL dpms_enabled; -#endif }; /* Old variable names */ #define DGA_Display (this->hidden->DGA_Display) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 4f138b365..47d6b2ceb 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -1131,6 +1131,8 @@ void X11_SaveScreenSaver(Display *display, int *saved_timeout, BOOL *dpms) DPMSInfo(display, &state, dpms); } } +#else + *dpms = 0; #endif /* SDL_VIDEO_DRIVER_X11_DPMS */ }