Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Disable video extensions atm
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 13, 2007
1 parent d94ccd9 commit e1a5479
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/xbios/SDL_xbios_blowup.c
Expand Up @@ -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;

Expand Down Expand Up @@ -65,6 +66,7 @@ SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow)
}
}
}
#endif
}

/* vi: set ts=4 sw=4 expandtab: */
8 changes: 8 additions & 0 deletions src/video/xbios/SDL_xbios_centscreen.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -75,11 +76,15 @@ SDL_XBIOS_CentscreenInit(_THIS)
}

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;
Expand All @@ -92,18 +97,21 @@ SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
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 */
newmode.handle = prev_handle;
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: */
4 changes: 4 additions & 0 deletions src/video/xbios/SDL_xbios_sb3.c
Expand Up @@ -50,6 +50,7 @@ const int SDL_XBIOS_scpn_planes_device[] = {
int
SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn)
{
#if 0
scpn_screeninfo_t *scrinfo;
int bpp;

Expand All @@ -60,13 +61,15 @@ SDL_XBIOS_SB3Usable(scpn_cookie_t * cookie_scpn)
if ((bpp == 8) || (bpp == 16)) {
return 1;
}
#endif

return 0;
}

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 */
Expand All @@ -84,6 +87,7 @@ SDL_XBIOS_SB3Init(_THIS, scpn_cookie_t * cookie_scpn)
scrinfo->virtual_width, scrinfo->virtual_height,
1 << (SDL_XBIOS_scpn_planes_device[scrinfo->device]),
SDL_FALSE);
#endif
}

/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit e1a5479

Please sign in to comment.