I am creating a window using the most recent SDL (compiled from source) using the
SDL_WINDOW_ALLOW_HIGHDPI flag. On OSX with a retina display I get a window with a size of 800x600 (which is what
SDL_GetWindowSize reports) and a framebuffer size of twice that (as reported by
SDL_GL_GetDrawableSize). On Ubuntu 18.10 with a hidpi display I get a small window of 800x600 which makes me wonder what the expected behavior on x11 based platforms is. Wouldn’t it be desirable to have the same behavior on all platforms or is that just not possible (or a good idea)?
Either way, I’d at least be able to detect if I am on a hidpi display so I can scale things accordingly myself. Is there a way to get that information on ubuntu using sdl? Or possibly to detect the content scaling factor that is specified on a screen?