Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 1792:409974dedf2e
More compile fixes for systems without the DPMS extension
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 09 May 2006 07:50:28 +0000 |
parents | 01313c1a2bbe |
children | c121d94672cb c5c3c772f5aa |
comparison
equal
deleted
inserted
replaced
1791:5652192b9c8b | 1792:409974dedf2e |
---|---|
1129 if ( DPMSQueryExtension(display, &dummy, &dummy) ) { | 1129 if ( DPMSQueryExtension(display, &dummy, &dummy) ) { |
1130 CARD16 state; | 1130 CARD16 state; |
1131 DPMSInfo(display, &state, dpms); | 1131 DPMSInfo(display, &state, dpms); |
1132 } | 1132 } |
1133 } | 1133 } |
1134 #else | |
1135 *dpms = 0; | |
1134 #endif /* SDL_VIDEO_DRIVER_X11_DPMS */ | 1136 #endif /* SDL_VIDEO_DRIVER_X11_DPMS */ |
1135 } | 1137 } |
1136 | 1138 |
1137 void X11_DisableScreenSaver(Display *display) | 1139 void X11_DisableScreenSaver(Display *display) |
1138 { | 1140 { |