Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios.c @ 1322:a4566d07718f
Update for mintlib 0.57.6 (m68k-atari-mint libc)
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Thu, 02 Feb 2006 21:27:24 +0000 |
parents | c9b51268668f |
children | 3692456e7b0f |
comparison
equal
deleted
inserted
replaced
1321:e05bc5d315e3 | 1322:a4566d07718f |
---|---|
120 case VDO_TT: | 120 case VDO_TT: |
121 if ( (EgetShift() & ES_MODE) == TT_HIGH) | 121 if ( (EgetShift() & ES_MODE) == TT_HIGH) |
122 return 0; | 122 return 0; |
123 break; | 123 break; |
124 case VDO_F30: | 124 case VDO_F30: |
125 if ( Montype() == MONITOR_MONO) | 125 if ( VgetMonitor() == MONITOR_MONO) |
126 return 0; | 126 return 0; |
127 if (Getcookie(C_SCPN, &cookie_scpn) == C_FOUND) { | 127 if (Getcookie(C_SCPN, &cookie_scpn) == C_FOUND) { |
128 if (!SDL_XBIOS_SB3Usable((scpn_cookie_t *)cookie_scpn)) { | 128 if (!SDL_XBIOS_SB3Usable((scpn_cookie_t *)cookie_scpn)) { |
129 return 0; | 129 return 0; |
130 } | 130 } |
346 } | 346 } |
347 | 347 |
348 vformat->BitsPerPixel = 8; | 348 vformat->BitsPerPixel = 8; |
349 break; | 349 break; |
350 case VDO_F30: | 350 case VDO_F30: |
351 switch (Montype()) | 351 switch (VgetMonitor()) |
352 { | 352 { |
353 case MONITOR_MONO: | 353 case MONITOR_MONO: |
354 /* Not usable */ | 354 /* Not usable */ |
355 break; | 355 break; |
356 case MONITOR_RGB: | 356 case MONITOR_RGB: |
380 SDL_XBIOS_AddMode(this, BPS8,320,480,8,SDL_FALSE); | 380 SDL_XBIOS_AddMode(this, BPS8,320,480,8,SDL_FALSE); |
381 SDL_XBIOS_AddMode(this, BPS8|VERTFLAG,320,240,8,SDL_FALSE); | 381 SDL_XBIOS_AddMode(this, BPS8|VERTFLAG,320,240,8,SDL_FALSE); |
382 break; | 382 break; |
383 } | 383 } |
384 XBIOS_oldvbase=Logbase(); | 384 XBIOS_oldvbase=Logbase(); |
385 XBIOS_oldvmode=Vsetmode(-1); | 385 XBIOS_oldvmode=VsetMode(-1); |
386 | 386 |
387 XBIOS_oldnumcol= 1<< (1 << (XBIOS_oldvmode & NUMCOLS)); | 387 XBIOS_oldnumcol= 1<< (1 << (XBIOS_oldvmode & NUMCOLS)); |
388 if (XBIOS_oldnumcol > 256) { | 388 if (XBIOS_oldnumcol > 256) { |
389 XBIOS_oldnumcol = 0; | 389 XBIOS_oldnumcol = 0; |
390 } | 390 } |