comparison src/video/xbios/SDL_xbios_sb3.c @ 2188:0e751c1f83f5

Disable video extensions atm
author Patrice Mandin <patmandin@gmail.com>
date Fri, 13 Jul 2007 22:52:53 +0000
parents c121d94672cb
children 99210400e8b9
comparison
equal deleted inserted replaced
2187:0b24732b1134 2188:0e751c1f83f5
48 /*--- Functions ---*/ 48 /*--- Functions ---*/
49 49
50 int 50 int
51 SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn) 51 SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn)
52 { 52 {
53 #if 0
53 scpn_screeninfo_t *scrinfo; 54 scpn_screeninfo_t *scrinfo;
54 int bpp; 55 int bpp;
55 56
56 /* Check if current SB3 mode is usable, i.e. 8 or 16bpp */ 57 /* Check if current SB3 mode is usable, i.e. 8 or 16bpp */
57 scrinfo = cookie_scpn->screen_info; 58 scrinfo = cookie_scpn->screen_info;
58 bpp = 1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]); 59 bpp = 1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]);
59 60
60 if ((bpp == 8) || (bpp == 16)) { 61 if ((bpp == 8) || (bpp == 16)) {
61 return 1; 62 return 1;
62 } 63 }
64 #endif
63 65
64 return 0; 66 return 0;
65 } 67 }
66 68
67 void 69 void
68 SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn) 70 SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn)
69 { 71 {
72 #if 0
70 scpn_screeninfo_t *scrinfo; 73 scpn_screeninfo_t *scrinfo;
71 74
72 /* SB3 prevent changing video modes, we can only use current one */ 75 /* SB3 prevent changing video modes, we can only use current one */
73 if (XBIOS_modelist) { 76 if (XBIOS_modelist) {
74 SDL_free(XBIOS_modelist); 77 SDL_free(XBIOS_modelist);
82 SDL_XBIOS_AddMode(this, 85 SDL_XBIOS_AddMode(this,
83 -1, 86 -1,
84 scrinfo->virtual_width, scrinfo->virtual_height, 87 scrinfo->virtual_width, scrinfo->virtual_height,
85 1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]), 88 1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]),
86 SDL_FALSE); 89 SDL_FALSE);
90 #endif
87 } 91 }
88 92
89 /* vi: set ts=4 sw=4 expandtab: */ 93 /* vi: set ts=4 sw=4 expandtab: */