Skip to content

Commit

Permalink
Finally bugfixed: the simpler the better
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Sep 3, 2003
1 parent a6a7401 commit 54cf62e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/video/xbios/SDL_xbios.c
Expand Up @@ -400,19 +400,13 @@ static int XBIOS_VideoInit(_THIS, SDL_PixelFormat *vformat)

static SDL_Rect **XBIOS_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags)
{
unsigned int numlist;

/* 8 bits -> list 0 */
/* 16 bits -> list 1 */
if (format->BitsPerPixel == 15) {
if ((format->BitsPerPixel != 8) && (format->BitsPerPixel !=16)) {
return NULL;
}

numlist = (format->BitsPerPixel)>>4;
if (numlist>1)
return NULL;

return(SDL_modelist[numlist]);
return(SDL_modelist[(format->BitsPerPixel)>>4]);
}

static void XBIOS_FreeBuffers(_THIS)
Expand Down

0 comments on commit 54cf62e

Please sign in to comment.