# HG changeset patch # User Sam Lantinga # Date 1198763981 0 # Node ID 1859647893b8ae59207d49826193d170f5d4e146 # Parent f733c048a94f68f2353a1df15b9a10e966511ac2 Fixed crash when given video modes > 32 bpp diff -r f733c048a94f -r 1859647893b8 src/video/windib/SDL_dibvideo.c --- a/src/video/windib/SDL_dibvideo.c Tue Sep 25 09:59:26 2007 +0000 +++ b/src/video/windib/SDL_dibvideo.c Thu Dec 27 13:59:41 2007 +0000 @@ -213,7 +213,7 @@ int next_mode; /* Check to see if we already have this mode */ - if ( bpp < 8 ) { /* Not supported */ + if ( bpp < 8 || bpp > 32 ) { /* Not supported */ return(0); } index = ((bpp+7)/8)-1;