comparison src/video/xbios/SDL_xbios.c @ 1061:5023cde12cbd

Add Falcon Centscreen extension support
author Patrice Mandin <patmandin@gmail.com>
date Wed, 18 May 2005 17:02:17 +0000
parents 21d1d05aad39
children fba6b67b4d60
comparison
equal deleted inserted replaced
1060:86885b40a53b 1061:5023cde12cbd
54 #include "SDL_atarievents_c.h" 54 #include "SDL_atarievents_c.h"
55 #include "SDL_atarimxalloc_c.h" 55 #include "SDL_atarimxalloc_c.h"
56 #include "SDL_atarigl_c.h" 56 #include "SDL_atarigl_c.h"
57 #include "SDL_xbios.h" 57 #include "SDL_xbios.h"
58 #include "SDL_xbios_blowup.h" 58 #include "SDL_xbios_blowup.h"
59 #include "SDL_xbios_centscreen.h"
59 #include "SDL_xbios_sb3.h" 60 #include "SDL_xbios_sb3.h"
60 61
61 #define XBIOS_VID_DRIVER_NAME "xbios" 62 #define XBIOS_VID_DRIVER_NAME "xbios"
62 63
63 /* Debug print info */ 64 /* Debug print info */
259 260
260 static int XBIOS_VideoInit(_THIS, SDL_PixelFormat *vformat) 261 static int XBIOS_VideoInit(_THIS, SDL_PixelFormat *vformat)
261 { 262 {
262 int i,j8,j16; 263 int i,j8,j16;
263 xbiosmode_t *current_mode; 264 xbiosmode_t *current_mode;
264 unsigned long cookie_blow, cookie_scpn; 265 unsigned long cookie_blow, cookie_scpn, cookie_cnts;
265 266
266 /* Initialize all variables that we clean on shutdown */ 267 /* Initialize all variables that we clean on shutdown */
267 memset (SDL_modelist, 0, sizeof(SDL_modelist)); 268 memset (SDL_modelist, 0, sizeof(SDL_modelist));
268 269
269 /* Cookie _VDO present ? if not, assume ST machine */ 270 /* Cookie _VDO present ? if not, assume ST machine */
413 /* Initialize BlowUp or SB3 stuff if present */ 414 /* Initialize BlowUp or SB3 stuff if present */
414 if (Getcookie(C_BLOW, &cookie_blow) == C_FOUND) { 415 if (Getcookie(C_BLOW, &cookie_blow) == C_FOUND) {
415 SDL_XBIOS_BlowupInit(this, (blow_cookie_t *)cookie_blow); 416 SDL_XBIOS_BlowupInit(this, (blow_cookie_t *)cookie_blow);
416 } else if (Getcookie(C_SCPN, &cookie_scpn) == C_FOUND) { 417 } else if (Getcookie(C_SCPN, &cookie_scpn) == C_FOUND) {
417 SDL_XBIOS_SB3Init(this, (scpn_cookie_t *)cookie_scpn); 418 SDL_XBIOS_SB3Init(this, (scpn_cookie_t *)cookie_scpn);
418 } 419 } else if (Getcookie(C_CNTS, &cookie_cnts) == C_FOUND) {
419 420 SDL_XBIOS_CentscreenInit(this);
421 }
420 break; 422 break;
421 } 423 }
422 424
423 current_mode = XBIOS_modelist; 425 current_mode = XBIOS_modelist;
424 j8 = j16 = 0; 426 j8 = j16 = 0;