comparison src/video/win32/SDL_win32modes.c @ 3139:7f684f249ec9

indent
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 May 2009 22:41:08 +0000
parents 0d12e8f1de3c
children e6c113f1ea43
comparison
equal deleted inserted replaced
3125:d71d8ceda8b3 3139:7f684f249ec9
53 mode->h = devmode.dmPelsHeight; 53 mode->h = devmode.dmPelsHeight;
54 mode->refresh_rate = devmode.dmDisplayFrequency; 54 mode->refresh_rate = devmode.dmDisplayFrequency;
55 mode->driverdata = data; 55 mode->driverdata = data;
56 #ifdef _WIN32_WCE 56 #ifdef _WIN32_WCE
57 /* In WinCE EnumDisplaySettings(ENUM_CURRENT_SETTINGS) doesn't take the user defined orientation 57 /* In WinCE EnumDisplaySettings(ENUM_CURRENT_SETTINGS) doesn't take the user defined orientation
58 into account but GetSystemMetrixs does. */ 58 into account but GetSystemMetrixs does. */
59 if(index == ENUM_CURRENT_SETTINGS) { 59 if (index == ENUM_CURRENT_SETTINGS) {
60 mode->w = GetSystemMetrics(SM_CXSCREEN); 60 mode->w = GetSystemMetrics(SM_CXSCREEN);
61 mode->h = GetSystemMetrics(SM_CYSCREEN); 61 mode->h = GetSystemMetrics(SM_CYSCREEN);
62 } 62 }
63 #endif 63 #endif
64 64
65 /* WinCE has no GetDIBits, therefore we can't use it to get the display format */ 65 /* WinCE has no GetDIBits, therefore we can't use it to get the display format */
66 #ifndef _WIN32_WCE 66 #ifndef _WIN32_WCE
209 int 209 int
210 WIN_SetDisplayMode(_THIS, SDL_DisplayMode * mode) 210 WIN_SetDisplayMode(_THIS, SDL_DisplayMode * mode)
211 { 211 {
212 SDL_DisplayModeData *data = (SDL_DisplayModeData *) mode->driverdata; 212 SDL_DisplayModeData *data = (SDL_DisplayModeData *) mode->driverdata;
213 LONG status; 213 LONG status;
214 214
215 #ifdef _WIN32_WCE 215 #ifdef _WIN32_WCE
216 /* TODO: implement correctly. 216 /* TODO: implement correctly.
217 On my Asus MyPAL, if I execute the code below 217 On my Asus MyPAL, if I execute the code below
218 I get DISP_CHANGE_BADFLAGS and the Titlebar of the fullscreen window stays 218 I get DISP_CHANGE_BADFLAGS and the Titlebar of the fullscreen window stays
219 visible ... (SDL_RaiseWindow() would fix that one)*/ 219 visible ... (SDL_RaiseWindow() would fix that one) */
220 return 0; 220 return 0;
221 #endif 221 #endif
222 222
223 status = 223 status =
224 ChangeDisplaySettingsEx(data->DeviceName, &data->DeviceMode, NULL, 224 ChangeDisplaySettingsEx(data->DeviceName, &data->DeviceMode, NULL,