Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios_blowup.c @ 1895:c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 21:04:37 +0000 |
parents | d910939febfa |
children | 12ef90a41631 |
comparison
equal
deleted
inserted
replaced
1894:c69cee13dd76 | 1895:c121d94672cb |
---|---|
30 #include <mint/falcon.h> | 30 #include <mint/falcon.h> |
31 | 31 |
32 #include "SDL_xbios.h" | 32 #include "SDL_xbios.h" |
33 #include "SDL_xbios_blowup.h" | 33 #include "SDL_xbios_blowup.h" |
34 | 34 |
35 void SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t *cookie_blow) | 35 void |
36 SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow) | |
36 { | 37 { |
37 int i, num_mode, bank; | 38 int i, num_mode, bank; |
38 blow_mode_t *blow_mode; | 39 blow_mode_t *blow_mode; |
39 | 40 |
40 /* Add bit 15 for old modes */ | 41 /* Add bit 15 for old modes */ |
41 for (i=0;i<XBIOS_nummodes;i++) { | 42 for (i = 0; i < XBIOS_nummodes; i++) { |
42 XBIOS_modelist[i].number |= 1<<15; | 43 XBIOS_modelist[i].number |= 1 << 15; |
43 } | 44 } |
44 | 45 |
45 /* Add Blowup modes for 8 and 16 bpp */ | 46 /* Add Blowup modes for 8 and 16 bpp */ |
46 for (num_mode=3; num_mode<5; num_mode++) { | 47 for (num_mode = 3; num_mode < 5; num_mode++) { |
47 bank = cookie_blow->num_mode[num_mode]; | 48 bank = cookie_blow->num_mode[num_mode]; |
48 blow_mode = &(cookie_blow->blowup_modes[num_mode+(bank*5)]); | 49 blow_mode = &(cookie_blow->blowup_modes[num_mode + (bank * 5)]); |
49 | 50 |
50 /* Check extended mode enabled */ | 51 /* Check extended mode enabled */ |
51 if (blow_mode->enabled == 0) { | 52 if (blow_mode->enabled == 0) { |
52 /* Check monitor needed for this mode */ | 53 /* Check monitor needed for this mode */ |
53 if ((blow_mode->monitor == cookie_blow->montype) | 54 if ((blow_mode->monitor == cookie_blow->montype) |
54 || ((blow_mode->monitor == MONITOR_TV) | 55 || ((blow_mode->monitor == MONITOR_TV) |
55 && (cookie_blow->montype == MONITOR_RGB)) | 56 && (cookie_blow->montype == MONITOR_RGB)) |
56 || ((blow_mode->monitor == MONITOR_RGB) | 57 || ((blow_mode->monitor == MONITOR_RGB) |
57 && (cookie_blow->montype == MONITOR_TV))) | 58 && (cookie_blow->montype == MONITOR_TV))) { |
58 { | 59 /* we can use this extended mode */ |
59 /* we can use this extended mode */ | 60 SDL_XBIOS_AddMode(this, |
60 SDL_XBIOS_AddMode(this, | 61 num_mode == 3 ? BPS8 : BPS16, |
61 num_mode == 3 ? BPS8 : BPS16, | 62 blow_mode->width + 1, |
62 blow_mode->width + 1, | 63 blow_mode->height + 1, |
63 blow_mode->height + 1, | 64 num_mode == 3 ? 8 : 16, SDL_FALSE); |
64 num_mode == 3 ? 8 : 16, | 65 } |
65 SDL_FALSE | 66 } |
66 ); | 67 } |
67 } | |
68 } | |
69 } | |
70 } | 68 } |
69 | |
70 /* vi: set ts=4 sw=4 expandtab: */ |