Commit ff411139 authored by Patrice Mandin's avatar Patrice Mandin

Disable video extensions atm

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402515
parent d53ee909
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
void void
SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow) SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow)
{ {
#if 0
int i, num_mode, bank; int i, num_mode, bank;
blow_mode_t *blow_mode; blow_mode_t *blow_mode;
...@@ -65,6 +66,7 @@ SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow) ...@@ -65,6 +66,7 @@ SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow)
} }
} }
} }
#endif
} }
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
int int
SDL_XBIOS_CentscreenInit(_THIS) SDL_XBIOS_CentscreenInit(_THIS)
{ {
#if 0
centscreen_mode_t curmode, listedmode; centscreen_mode_t curmode, listedmode;
unsigned long result; unsigned long result;
int cur_handle; /* Current Centscreen mode handle */ int cur_handle; /* Current Centscreen mode handle */
...@@ -75,11 +76,15 @@ SDL_XBIOS_CentscreenInit(_THIS) ...@@ -75,11 +76,15 @@ SDL_XBIOS_CentscreenInit(_THIS)
} }
return cur_handle; return cur_handle;
#else
return -1;
#endif
} }
void void
SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes) SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
{ {
#if 0
centscreen_mode_t newmode, curmode; centscreen_mode_t newmode, curmode;
newmode.handle = newmode.mode = newmode.logx = newmode.logy = -1; newmode.handle = newmode.mode = newmode.logx = newmode.logy = -1;
...@@ -92,11 +97,13 @@ SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes) ...@@ -92,11 +97,13 @@ SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
Vread(&newmode); Vread(&newmode);
newmode.mode &= ~(CSCREEN_SAVER | CSCREEN_ENERGYSTAR); newmode.mode &= ~(CSCREEN_SAVER | CSCREEN_ENERGYSTAR);
Vwrite(0, &newmode, &curmode); Vwrite(0, &newmode, &curmode);
#endif
} }
void void
SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle) SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)
{ {
#if 0
centscreen_mode_t newmode, curmode; centscreen_mode_t newmode, curmode;
/* Restore old video mode */ /* Restore old video mode */
...@@ -104,6 +111,7 @@ SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle) ...@@ -104,6 +111,7 @@ SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)
newmode.mode = newmode.physx = newmode.physy = newmode.plan = newmode.mode = newmode.physx = newmode.physy = newmode.plan =
newmode.logx = newmode.logy = -1; newmode.logx = newmode.logy = -1;
Vwrite(0, &newmode, &curmode); Vwrite(0, &newmode, &curmode);
#endif
} }
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */
...@@ -50,6 +50,7 @@ const int SDL_XBIOS_scpn_planes_device[] = { ...@@ -50,6 +50,7 @@ const int SDL_XBIOS_scpn_planes_device[] = {
int int
SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn) SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn)
{ {
#if 0
scpn_screeninfo_t *scrinfo; scpn_screeninfo_t *scrinfo;
int bpp; int bpp;
...@@ -60,6 +61,7 @@ SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn) ...@@ -60,6 +61,7 @@ SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn)
if ((bpp == 8) || (bpp == 16)) { if ((bpp == 8) || (bpp == 16)) {
return 1; return 1;
} }
#endif
return 0; return 0;
} }
...@@ -67,6 +69,7 @@ SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn) ...@@ -67,6 +69,7 @@ SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn)
void void
SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn) SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn)
{ {
#if 0
scpn_screeninfo_t *scrinfo; scpn_screeninfo_t *scrinfo;
/* SB3 prevent changing video modes, we can only use current one */ /* SB3 prevent changing video modes, we can only use current one */
...@@ -84,6 +87,7 @@ SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn) ...@@ -84,6 +87,7 @@ SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn)
scrinfo->virtual_width, scrinfo->virtual_height, scrinfo->virtual_width, scrinfo->virtual_height,
1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]), 1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]),
SDL_FALSE); SDL_FALSE);
#endif
} }
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment