comparison src/video/windib/SDL_dibvideo.h @ 4162:3b7fc3416601 SDL-1.2

GAPI fixes from Stefan Klug
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Feb 2009 22:32:34 +0000
parents a1b03ba2fcd0
children
comparison
equal deleted inserted replaced
4161:bd91db0b0b5d 4162:3b7fc3416601
25 #define _SDL_dibvideo_h 25 #define _SDL_dibvideo_h
26 26
27 #define WIN32_LEAN_AND_MEAN 27 #define WIN32_LEAN_AND_MEAN
28 #include <windows.h> 28 #include <windows.h>
29 29
30 /* for PDA */
31 typedef enum
32 {
33 SDL_ORIENTATION_UP,
34 SDL_ORIENTATION_DOWN,
35 SDL_ORIENTATION_LEFT,
36 SDL_ORIENTATION_RIGHT
37 } SDL_ScreenOrientation;
38 30
39 /* Private display data */ 31 /* Private display data */
40 struct SDL_PrivateVideoData { 32 struct DibInfo {
41 HBITMAP screen_bmp; 33 HBITMAP screen_bmp;
42 HPALETTE screen_pal; 34 HPALETTE screen_pal;
43 LOGPALETTE *screen_logpal; 35 LOGPALETTE *screen_logpal;
44 BOOL grab_palette; 36 BOOL grab_palette;
45 37
46 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ 38 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */
47 int SDL_nummodes[NUM_MODELISTS]; 39 int SDL_nummodes[NUM_MODELISTS];
48 SDL_Rect **SDL_modelist[NUM_MODELISTS]; 40 SDL_Rect **SDL_modelist[NUM_MODELISTS];
49 41
50 SDL_ScreenOrientation orientation;
51 #ifdef _WIN32_WCE 42 #ifdef _WIN32_WCE
52 int invert; /* do to remove, used by GAPI driver! */
53 char hiresFix; /* using hires mode without defining hires resource */
54 int supportRotation; /* for Pocket PC devices */ 43 int supportRotation; /* for Pocket PC devices */
55 DWORD origRotation; /* for Pocket PC devices */ 44 DWORD origRotation; /* for Pocket PC devices */
56 #endif 45 #endif
57 46
58 /* Screensaver settings */ 47 /* Screensaver settings */
59 int allow_screensaver; 48 int allow_screensaver;
60 }; 49 };
61 /* Old variable names */ 50 /* Old variable names */
62 #define screen_bmp (this->hidden->screen_bmp) 51 #define screen_bmp (this->hidden->dibInfo->screen_bmp)
63 #define screen_pal (this->hidden->screen_pal) 52 #define screen_pal (this->hidden->dibInfo->screen_pal)
64 #define screen_logpal (this->hidden->screen_logpal) 53 #define screen_logpal (this->hidden->dibInfo->screen_logpal)
65 #define grab_palette (this->hidden->grab_palette) 54 #define grab_palette (this->hidden->dibInfo->grab_palette)
66 #define SDL_nummodes (this->hidden->SDL_nummodes) 55 #define SDL_nummodes (this->hidden->dibInfo->SDL_nummodes)
67 #define SDL_modelist (this->hidden->SDL_modelist) 56 #define SDL_modelist (this->hidden->dibInfo->SDL_modelist)
68 #define allow_screensaver (this->hidden->allow_screensaver) 57 #define allow_screensaver (this->hidden->dibInfo->allow_screensaver)
69 58
70 #endif /* _SDL_dibvideo_h */ 59 #endif /* _SDL_dibvideo_h */