int bmx_SDL_GetDisplayDepth(int display) {
SDL_DisplayMode mode;
SDL_GetCurrentDisplayMode(display, &mode);
return mode.format; // TODO - make this a proper bit depth number
}
could at least be extended similar to the latest adjustments regarding "displaymodes":
int bmx_SDL_GetDisplayDepth(int display) {
SDL_DisplayMode mode;
SDL_GetCurrentDisplayMode(display, &mode);
switch(mode.format) {
case SDL_PIXELFORMAT_RGBA8888:
return 32;
case SDL_PIXELFORMAT_RGB888:
return 24;
}
return mode.format; // TODO - make this a proper bit depth number
}
could at least be extended similar to the latest adjustments regarding "displaymodes":