comparison src/video/svga/SDL_svgavideo.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents 011b633fa0c9
children 99210400e8b9
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
29 29
30 /* Hidden "this" pointer for the video functions */ 30 /* Hidden "this" pointer for the video functions */
31 #define _THIS SDL_VideoDevice *this 31 #define _THIS SDL_VideoDevice *this
32 32
33 /* Private display data */ 33 /* Private display data */
34 struct SDL_PrivateVideoData { 34 struct SDL_PrivateVideoData
35 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ 35 {
36 int SDL_nummodes[NUM_MODELISTS]; 36 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */
37 SDL_Rect **SDL_modelist[NUM_MODELISTS]; 37 int SDL_nummodes[NUM_MODELISTS];
38 int *SDL_vgamode[NUM_MODELISTS]; 38 SDL_Rect **SDL_modelist[NUM_MODELISTS];
39 int *SDL_vgamode[NUM_MODELISTS];
39 40
40 /* information for double-buffering */ 41 /* information for double-buffering */
41 int flip_page; 42 int flip_page;
42 int flip_offset[2]; 43 int flip_offset[2];
43 Uint8 *flip_address[2]; 44 Uint8 *flip_address[2];
44 45
45 /* Set to 1 if we're in banked video mode */ 46 /* Set to 1 if we're in banked video mode */
46 int banked; 47 int banked;
47 }; 48 };
48 /* Old variable names */ 49 /* Old variable names */
49 #define SDL_nummodes (this->hidden->SDL_nummodes) 50 #define SDL_nummodes (this->hidden->SDL_nummodes)
50 #define SDL_modelist (this->hidden->SDL_modelist) 51 #define SDL_modelist (this->hidden->SDL_modelist)
51 #define SDL_vgamode (this->hidden->SDL_vgamode) 52 #define SDL_vgamode (this->hidden->SDL_vgamode)
53 #define flip_offset (this->hidden->flip_offset) 54 #define flip_offset (this->hidden->flip_offset)
54 #define flip_address (this->hidden->flip_address) 55 #define flip_address (this->hidden->flip_address)
55 #define banked (this->hidden->banked) 56 #define banked (this->hidden->banked)
56 57
57 #endif /* _SDL_svgavideo_h */ 58 #endif /* _SDL_svgavideo_h */
58 59 /* vi: set ts=4 sw=4 expandtab: */