Explorar el Código

Fixed incorrect depth from GraphicsModes.

woollybah hace 9 años
padre
commit
fd419821c6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;