Brucey пре 3 година
родитељ
комит
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) {
 int bmx_SDL_GetDisplayDepth(int display) {
 	SDL_DisplayMode mode;
 	SDL_DisplayMode mode;
 	SDL_GetCurrentDisplayMode(display, &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) {
 int bmx_SDL_GetDisplayhertz(int display) {