Browse Source

Fixed incorrect depth from GraphicsModes.

woollybah 9 years ago
parent
commit
fd419821c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sdlgraphics.mod/glue.c

+ 1 - 1
sdlgraphics.mod/glue.c

@@ -83,7 +83,7 @@ int bbSDLGraphicsGraphicsModes( int display, int *imodes,int maxcount ) {
 
 		*imodes++=mode.w;
 		*imodes++=mode.h;
-		*imodes++=mode.format;
+		*imodes++=SDL_BITSPERPIXEL(mode.format);
 		*imodes++=mode.refresh_rate;
 	}
 	return count;