comparison src/video/windib/SDL_dibvideo.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 8dfa9a6d69a5
children
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
28 #include <windows.h> 28 #include <windows.h>
29 29
30 /* for PDA */ 30 /* for PDA */
31 typedef enum 31 typedef enum
32 { 32 {
33 SDL_ORIENTATION_UP, 33 SDL_ORIENTATION_UP,
34 SDL_ORIENTATION_DOWN, 34 SDL_ORIENTATION_DOWN,
35 SDL_ORIENTATION_LEFT, 35 SDL_ORIENTATION_LEFT,
36 SDL_ORIENTATION_RIGHT 36 SDL_ORIENTATION_RIGHT
37 } SDL_ScreenOrientation; 37 } SDL_ScreenOrientation;
38 38
39 /* Private display data */ 39 /* Private display data */
40 struct SDL_PrivateVideoData { 40 struct SDL_PrivateVideoData
41 {
41 HBITMAP screen_bmp; 42 HBITMAP screen_bmp;
42 HPALETTE screen_pal; 43 HPALETTE screen_pal;
43 44
44 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ 45 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */
45 int SDL_nummodes[NUM_MODELISTS]; 46 int SDL_nummodes[NUM_MODELISTS];
46 SDL_Rect **SDL_modelist[NUM_MODELISTS]; 47 SDL_Rect **SDL_modelist[NUM_MODELISTS];
47 48
48 SDL_ScreenOrientation orientation; 49 SDL_ScreenOrientation orientation;
49 #ifdef _WIN32_WCE 50 #ifdef _WIN32_WCE
50 int invert; /* do to remove, used by GAPI driver! */ 51 int invert; /* do to remove, used by GAPI driver! */
51 char hiresFix; /* using hires mode without defining hires resource */ 52 char hiresFix; /* using hires mode without defining hires resource */
52 int supportRotation; /* for Pocket PC devices */ 53 int supportRotation; /* for Pocket PC devices */
53 DWORD origRotation; /* for Pocket PC devices */ 54 DWORD origRotation; /* for Pocket PC devices */
54 #endif 55 #endif
55 }; 56 };
56 /* Old variable names */ 57 /* Old variable names */
57 #define screen_bmp (this->hidden->screen_bmp) 58 #define screen_bmp (this->hidden->screen_bmp)
58 #define screen_pal (this->hidden->screen_pal) 59 #define screen_pal (this->hidden->screen_pal)
59 #define SDL_nummodes (this->hidden->SDL_nummodes) 60 #define SDL_nummodes (this->hidden->SDL_nummodes)
60 #define SDL_modelist (this->hidden->SDL_modelist) 61 #define SDL_modelist (this->hidden->SDL_modelist)
61 62
62 #endif /* _SDL_dibvideo_h */ 63 #endif /* _SDL_dibvideo_h */
64 /* vi: set ts=4 sw=4 expandtab: */