Browse Source

Fixed incorrect depth from GraphicsModes.

woollybah 9 năm trước cách đây
mục cha
commit
fd419821c6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;