comparison src/video/xbios/SDL_xbios_sb3.c @ 1668:4da1ee79c9af SDL-1.3

more tweaking indent options
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 May 2006 04:04:35 +0000
parents 782fd950bd46
children
comparison
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
46 }; 46 };
47 47
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 scpn_screeninfo_t *scrinfo; 53 scpn_screeninfo_t *scrinfo;
54 int bpp; 54 int bpp;
55 55
56 /* Check if current SB3 mode is usable, i.e. 8 or 16bpp */ 56 /* Check if current SB3 mode is usable, i.e. 8 or 16bpp */
63 63
64 return 0; 64 return 0;
65 } 65 }
66 66
67 void 67 void
68 SDL_XBIOS_SB3Init (_THIS, scpn_cookie_t * cookie_scpn) 68 SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn)
69 { 69 {
70 scpn_screeninfo_t *scrinfo; 70 scpn_screeninfo_t *scrinfo;
71 71
72 /* SB3 prevent changing video modes, we can only use current one */ 72 /* SB3 prevent changing video modes, we can only use current one */
73 if (XBIOS_modelist) { 73 if (XBIOS_modelist) {
74 SDL_free (XBIOS_modelist); 74 SDL_free(XBIOS_modelist);
75 XBIOS_nummodes = 0; 75 XBIOS_nummodes = 0;
76 XBIOS_modelist = NULL; 76 XBIOS_modelist = NULL;
77 } 77 }
78 78
79 scrinfo = cookie_scpn->screen_info; 79 scrinfo = cookie_scpn->screen_info;
80 scrinfo->h_pos = scrinfo->v_pos = 0; 80 scrinfo->h_pos = scrinfo->v_pos = 0;
81 81
82 SDL_XBIOS_AddMode (this, 82 SDL_XBIOS_AddMode(this,
83 -1, 83 -1,
84 scrinfo->virtual_width, scrinfo->virtual_height, 84 scrinfo->virtual_width, scrinfo->virtual_height,
85 1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]), 85 1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]),
86 SDL_FALSE); 86 SDL_FALSE);
87 } 87 }
88 88
89 /* vi: set ts=4 sw=4 expandtab: */ 89 /* vi: set ts=4 sw=4 expandtab: */