Commit 238f5387 authored by Patrice Mandin's avatar Patrice Mandin

Finally bugfixed: the simpler the better

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40713
parent cd8a3765
...@@ -400,19 +400,13 @@ static int XBIOS_VideoInit(_THIS, SDL_PixelFormat *vformat) ...@@ -400,19 +400,13 @@ static int XBIOS_VideoInit(_THIS, SDL_PixelFormat *vformat)
static SDL_Rect **XBIOS_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags) static SDL_Rect **XBIOS_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags)
{ {
unsigned int numlist;
/* 8 bits -> list 0 */ /* 8 bits -> list 0 */
/* 16 bits -> list 1 */ /* 16 bits -> list 1 */
if (format->BitsPerPixel == 15) { if ((format->BitsPerPixel != 8) && (format->BitsPerPixel !=16)) {
return NULL; return NULL;
} }
numlist = (format->BitsPerPixel)>>4; return(SDL_modelist[(format->BitsPerPixel)>>4]);
if (numlist>1)
return NULL;
return(SDL_modelist[numlist]);
} }
static void XBIOS_FreeBuffers(_THIS) static void XBIOS_FreeBuffers(_THIS)
......
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