comparison src/video/vgl/SDL_vglvideo.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 d910939febfa
children 99210400e8b9
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
33 #include "../SDL_sysvideo.h" 33 #include "../SDL_sysvideo.h"
34 34
35 /* Hidden "this" pointer for the video functions */ 35 /* Hidden "this" pointer for the video functions */
36 #define _THIS SDL_VideoDevice *this 36 #define _THIS SDL_VideoDevice *this
37 37
38 typedef struct { 38 typedef struct
39 int ModeId; 39 {
40 int Depth; 40 int ModeId;
41 int Rmask; 41 int Depth;
42 int Gmask; 42 int Rmask;
43 int Bmask; 43 int Gmask;
44 VGLBitmap ModeInfo; 44 int Bmask;
45 VGLBitmap ModeInfo;
45 } VGLMode; 46 } VGLMode;
46 47
47 /* Private display data */ 48 /* Private display data */
48 struct SDL_PrivateVideoData { 49 struct SDL_PrivateVideoData
49 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ 50 {
50 int SDL_nummodes[NUM_MODELISTS]; 51 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */
51 SDL_Rect **SDL_modelist[NUM_MODELISTS]; 52 int SDL_nummodes[NUM_MODELISTS];
52 SDL_mutex *hw_lock; 53 SDL_Rect **SDL_modelist[NUM_MODELISTS];
53 VGLMode *VGLCurMode; 54 SDL_mutex *hw_lock;
54 int flip_page; 55 VGLMode *VGLCurMode;
55 byte *flip_address[2]; 56 int flip_page;
57 byte *flip_address[2];
56 }; 58 };
57 /* Old variable names */ 59 /* Old variable names */
58 #define SDL_nummodes (this->hidden->SDL_nummodes) 60 #define SDL_nummodes (this->hidden->SDL_nummodes)
59 #define SDL_modelist (this->hidden->SDL_modelist) 61 #define SDL_modelist (this->hidden->SDL_modelist)
60 #define hw_lock (this->hidden->hw_lock) 62 #define hw_lock (this->hidden->hw_lock)
61 #define VGLCurMode (this->hidden->VGLCurMode) 63 #define VGLCurMode (this->hidden->VGLCurMode)
62 #define flip_page (this->hidden->flip_page) 64 #define flip_page (this->hidden->flip_page)
63 #define flip_address (this->hidden->flip_address) 65 #define flip_address (this->hidden->flip_address)
64 66
65 #endif /* _SDL_vglvideo_h */ 67 #endif /* _SDL_vglvideo_h */
68 /* vi: set ts=4 sw=4 expandtab: */