comparison src/video/xbios/SDL_xbios.c @ 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
172 static int 172 static int
173 XBIOS_VideoInit(_THIS) 173 XBIOS_VideoInit(_THIS)
174 { 174 {
175 /* Save screensaver settings */ 175 /* Save screensaver settings */
176 176
177 /* Init video mode list */ 177 /* Init video mode list, save current video mode settings */
178 SDL_XBIOS_InitModes(_this); 178 SDL_XBIOS_InitModes(_this);
179 179
180 return (0); 180 return (0);
181 } 181 }
182 182
185 { 185 {
186 Atari_ShutdownEvents(); 186 Atari_ShutdownEvents();
187 187
188 /* Restore screensaver settings */ 188 /* Restore screensaver settings */
189 189
190 /* Restore previous video mode settings */
190 SDL_XBIOS_QuitModes(_this); 191 SDL_XBIOS_QuitModes(_this);
191 } 192 }