2
0
Brucey 3 жил өмнө
parent
commit
5e036c1e2f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      sdlsystem.mod/glue.c

+ 1 - 1
sdlsystem.mod/glue.c

@@ -60,7 +60,7 @@ int bmx_SDL_GetDisplayHeight(int display) {
 int bmx_SDL_GetDisplayDepth(int display) {
 	SDL_DisplayMode mode;
 	SDL_GetCurrentDisplayMode(display, &mode);
-	return mode.format; // TODO - make this a proper bit depth number
+	return (mode.format >> 8) & 0xFF;
 }
 
 int bmx_SDL_GetDisplayhertz(int display) {