comparison src/video/win32/SDL_win32modes.h @ 1733:0b1070f2f94d SDL-1.3

Implemented gamma correction on Windows. Added general code to restore the video mode and gamma when windows lose focus.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 09 Jul 2006 09:02:26 +0000
parents 98a3207ddde8
children
comparison
equal deleted inserted replaced
1732:fd65f12b6de6 1733:0b1070f2f94d
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #ifndef _SDL_win32modes_h 24 #ifndef _SDL_win32modes_h
25 #define _SDL_win32modes_h 25 #define _SDL_win32modes_h
26 26
27 typedef struct
28 {
29 TCHAR DeviceName[32];
30 } SDL_DisplayData;
31
32 typedef struct
33 {
34 TCHAR DeviceName[32];
35 DEVMODE DeviceMode;
36 } SDL_DisplayModeData;
37
27 extern void WIN_InitModes(_THIS); 38 extern void WIN_InitModes(_THIS);
39 extern void WIN_GetDisplayModes(_THIS);
28 extern int WIN_SetDisplayMode(_THIS, SDL_DisplayMode * mode); 40 extern int WIN_SetDisplayMode(_THIS, SDL_DisplayMode * mode);
29 extern void WIN_QuitModes(_THIS); 41 extern void WIN_QuitModes(_THIS);
30 42
31 #endif /* _SDL_win32modes_h */ 43 #endif /* _SDL_win32modes_h */
32 44