Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios.h @ 2035:c848c18684ab
Started update for 1.3
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 20 Sep 2006 22:09:19 +0000 |
parents | c121d94672cb |
children | 12ef90a41631 |
comparison
equal
deleted
inserted
replaced
2034:59e1a50193aa | 2035:c848c18684ab |
---|---|
25 #define _SDL_xbios_h | 25 #define _SDL_xbios_h |
26 | 26 |
27 #include "SDL_stdinc.h" | 27 #include "SDL_stdinc.h" |
28 #include "../SDL_sysvideo.h" | 28 #include "../SDL_sysvideo.h" |
29 | 29 |
30 /* Hidden "this" pointer for the video functions */ | |
31 #define _THIS SDL_VideoDevice *this | |
32 | |
33 /* TT video modes: 2 | 30 /* TT video modes: 2 |
34 Falcon RVB: 16 (could be *2 by adding PAL/NTSC modes) | 31 Falcon RVB: 16 (could be *2 by adding PAL/NTSC modes) |
35 Falcon VGA: 6 | 32 Falcon VGA: 6 |
36 ST low: 1 | 33 ST low: 1 |
37 */ | 34 */ |
47 } xbiosmode_t; | 44 } xbiosmode_t; |
48 | 45 |
49 /* Private display data */ | 46 /* Private display data */ |
50 #define NUM_MODELISTS 2 /* 8 and 16 bits-per-pixel */ | 47 #define NUM_MODELISTS 2 /* 8 and 16 bits-per-pixel */ |
51 | 48 |
52 struct SDL_PrivateVideoData | 49 struct SDL_VideoData |
53 { | 50 { |
54 long cookie_vdo; | 51 long cookie_vdo; |
55 int old_video_mode; /* Old video mode before entering SDL */ | 52 int old_video_mode; /* Old video mode before entering SDL */ |
56 void *old_video_base; /* Old pointer to screen buffer */ | 53 void *old_video_base; /* Old pointer to screen buffer */ |
57 void *old_palette; /* Old palette */ | 54 void *old_palette; /* Old palette */ |
69 | 66 |
70 SDL_bool centscreen; /* Centscreen extension present ? */ | 67 SDL_bool centscreen; /* Centscreen extension present ? */ |
71 | 68 |
72 SDL_Rect *SDL_modelist[NUM_MODELISTS][SDL_NUMMODES + 1]; | 69 SDL_Rect *SDL_modelist[NUM_MODELISTS][SDL_NUMMODES + 1]; |
73 xbiosmode_t *videomodes[NUM_MODELISTS][SDL_NUMMODES + 1]; | 70 xbiosmode_t *videomodes[NUM_MODELISTS][SDL_NUMMODES + 1]; |
74 }; | 71 } SDL_VideoData; |
75 | 72 |
76 /* _VDO cookie values */ | 73 /* _VDO cookie values */ |
77 enum | 74 enum |
78 { | 75 { |
79 VDO_ST = 0, | 76 VDO_ST = 0, |
104 #define TT_LOW 0x0700 | 101 #define TT_LOW 0x0700 |
105 #define TT_MED 0x0300 | 102 #define TT_MED 0x0300 |
106 #define TT_HIGH 0x0600 | 103 #define TT_HIGH 0x0600 |
107 | 104 |
108 /* Hidden structure -> variables names */ | 105 /* Hidden structure -> variables names */ |
109 #define SDL_modelist (this->hidden->SDL_modelist) | 106 #define SDL_modelist (_this->driverdata->SDL_modelist) |
110 #define XBIOS_mutex (this->hidden->mutex) | 107 #define XBIOS_mutex (_this->driverdata->mutex) |
111 #define XBIOS_cvdo (this->hidden->cookie_vdo) | 108 #define XBIOS_cvdo (_this->driverdata->cookie_vdo) |
112 #define XBIOS_oldpalette (this->hidden->old_palette) | 109 #define XBIOS_oldpalette (_this->driverdata->old_palette) |
113 #define XBIOS_oldnumcol (this->hidden->old_num_colors) | 110 #define XBIOS_oldnumcol (_this->driverdata->old_num_colors) |
114 #define XBIOS_oldvbase (this->hidden->old_video_base) | 111 #define XBIOS_oldvbase (_this->driverdata->old_video_base) |
115 #define XBIOS_oldvmode (this->hidden->old_video_mode) | 112 #define XBIOS_oldvmode (_this->driverdata->old_video_mode) |
116 #define XBIOS_nummodes (this->hidden->num_modes) | 113 #define XBIOS_nummodes (_this->driverdata->num_modes) |
117 #define XBIOS_modelist (this->hidden->mode_list) | 114 #define XBIOS_modelist (_this->driverdata->mode_list) |
118 #define XBIOS_screens (this->hidden->screens) | 115 #define XBIOS_screens (_this->driverdata->screens) |
119 #define XBIOS_screensmem (this->hidden->screensmem) | 116 #define XBIOS_screensmem (_this->driverdata->screensmem) |
120 #define XBIOS_shadowscreen (this->hidden->shadowscreen) | 117 #define XBIOS_shadowscreen (_this->driverdata->shadowscreen) |
121 #define XBIOS_videomodes (this->hidden->videomodes) | 118 #define XBIOS_videomodes (_this->driverdata->videomodes) |
122 #define XBIOS_doubleline (this->hidden->doubleline) | 119 #define XBIOS_doubleline (_this->driverdata->doubleline) |
123 #define XBIOS_fbnum (this->hidden->frame_number) | 120 #define XBIOS_fbnum (_this->driverdata->frame_number) |
124 #define XBIOS_pitch (this->hidden->pitch) | 121 #define XBIOS_pitch (_this->driverdata->pitch) |
125 #define XBIOS_width (this->hidden->width) | 122 #define XBIOS_width (_this->driverdata->width) |
126 #define XBIOS_height (this->hidden->height) | 123 #define XBIOS_height (_this->driverdata->height) |
127 #define XBIOS_centscreen (this->hidden->centscreen) | 124 #define XBIOS_centscreen (_this->driverdata->centscreen) |
128 | 125 |
129 /*--- Functions prototypes ---*/ | 126 /*--- Functions prototypes ---*/ |
130 | 127 |
131 void SDL_XBIOS_AddMode(_THIS, Uint16 modecode, Uint16 width, Uint16 height, | 128 void SDL_XBIOS_AddMode(_THIS, Uint16 modecode, Uint16 width, Uint16 height, |
132 Uint16 depth, SDL_bool flags); | 129 Uint16 depth, SDL_bool flags); |