changeset 2188:0e751c1f83f5

Disable video extensions atm
author Patrice Mandin <patmandin@gmail.com>
date Fri, 13 Jul 2007 22:52:53 +0000
parents 0b24732b1134
children f54670a477bb
files src/video/xbios/SDL_xbios_blowup.c src/video/xbios/SDL_xbios_centscreen.c src/video/xbios/SDL_xbios_sb3.c
diffstat 3 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios_blowup.c	Fri Jul 13 22:51:42 2007 +0000
+++ b/src/video/xbios/SDL_xbios_blowup.c	Fri Jul 13 22:52:53 2007 +0000
@@ -35,6 +35,7 @@
 void
 SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow)
 {
+#if 0
     int i, num_mode, bank;
     blow_mode_t *blow_mode;
 
@@ -65,6 +66,7 @@
             }
         }
     }
+#endif
 }
 
 /* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/xbios/SDL_xbios_centscreen.c	Fri Jul 13 22:51:42 2007 +0000
+++ b/src/video/xbios/SDL_xbios_centscreen.c	Fri Jul 13 22:52:53 2007 +0000
@@ -35,6 +35,7 @@
 int
 SDL_XBIOS_CentscreenInit(_THIS)
 {
+#if 0
     centscreen_mode_t curmode, listedmode;
     unsigned long result;
     int cur_handle;             /* Current Centscreen mode handle */
@@ -75,11 +76,15 @@
     }
 
     return cur_handle;
+#else
+    return -1;
+#endif
 }
 
 void
 SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
 {
+#if 0
     centscreen_mode_t newmode, curmode;
 
     newmode.handle = newmode.mode = newmode.logx = newmode.logy = -1;
@@ -92,11 +97,13 @@
     Vread(&newmode);
     newmode.mode &= ~(CSCREEN_SAVER | CSCREEN_ENERGYSTAR);
     Vwrite(0, &newmode, &curmode);
+#endif
 }
 
 void
 SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)
 {
+#if 0
     centscreen_mode_t newmode, curmode;
 
     /* Restore old video mode */
@@ -104,6 +111,7 @@
     newmode.mode = newmode.physx = newmode.physy = newmode.plan =
         newmode.logx = newmode.logy = -1;
     Vwrite(0, &newmode, &curmode);
+#endif
 }
 
 /* vi: set ts=4 sw=4 expandtab: */
--- a/src/video/xbios/SDL_xbios_sb3.c	Fri Jul 13 22:51:42 2007 +0000
+++ b/src/video/xbios/SDL_xbios_sb3.c	Fri Jul 13 22:52:53 2007 +0000
@@ -50,6 +50,7 @@
 int
 SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn)
 {
+#if 0
     scpn_screeninfo_t *scrinfo;
     int bpp;
 
@@ -60,6 +61,7 @@
     if ((bpp == 8) || (bpp == 16)) {
         return 1;
     }
+#endif
 
     return 0;
 }
@@ -67,6 +69,7 @@
 void
 SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn)
 {
+#if 0
     scpn_screeninfo_t *scrinfo;
 
     /* SB3 prevent changing video modes, we can only use current one */
@@ -84,6 +87,7 @@
                       scrinfo->virtual_width, scrinfo->virtual_height,
                       1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]),
                       SDL_FALSE);
+#endif
 }
 
 /* vi: set ts=4 sw=4 expandtab: */