Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios.h @ 2073:790726541708
Save/restore current video mode and palette
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Mon, 13 Nov 2006 20:34:18 +0000 |
parents | 4b3f98a9a2c1 |
children | 2c835d58faad |
comparison
equal
deleted
inserted
replaced
2072:4b3f98a9a2c1 | 2073:790726541708 |
---|---|
27 #include "SDL_stdinc.h" | 27 #include "SDL_stdinc.h" |
28 #include "../SDL_sysvideo.h" | 28 #include "../SDL_sysvideo.h" |
29 | 29 |
30 typedef struct SDL_VideoData | 30 typedef struct SDL_VideoData |
31 { | 31 { |
32 long cookie_vdo; | 32 long cookie_vdo; /* _VDO cookie */ |
33 | |
34 Uint16 old_modecode; /* Current video mode */ | |
35 void *old_vbase; /* Current pointer to video RAM */ | |
36 int old_numcol; /* Number of colors in saved palette */ | |
37 Uint32 old_palette[256]; /* Buffer to save current palette */ | |
33 | 38 |
34 #if 0 | 39 #if 0 |
35 int old_video_mode; /* Old video mode before entering SDL */ | 40 int old_video_mode; /* Old video mode before entering SDL */ |
36 void *old_video_base; /* Old pointer to screen buffer */ | 41 void *old_video_base; /* Old pointer to screen buffer */ |
37 void *old_palette; /* Old palette */ | 42 void *old_palette; /* Old palette */ |