Turns out I PR'd the wrong change. The SDL hint still required us to handle some changes with SDL_GetWindowSize, etc. Haven't figured out all the changes needed but just using the Windows level hint directly disables OS scaling and SDL scaling. I tripped up as the SDL scaling still res...
DPI scaling works correctly on Windows too. We're wondering if we're missing a hint or something to make sure the window is DPI aware on Linux with native Wayland. Could you point me in the right direction? Originally posted by @Reonu in #12140...
}printf("it is a test\n");// Register all formats and codecsav_register_all();//SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengles2");if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) {fprintf(stderr,"Could not initialize SDL - %s\n",SDL_GetError());exit(1); }...
* Support for this hint is currently available only in the pthread, Windows, and PSP backend. */ #define SDL_HINT_THREAD_STACK_SIZE "SDL_THREAD_STACK_SIZE" /** * \brief If set to 1, then do not allow high-DPI windows. ("Retina" on Mac and iOS) */ #define SDL_HINT_VID...
_HINT_AUTO_UPDATE_JOYSTICKS.3.gz /usr/share/man/man3/SDL_HINT_AUTO_UPDATE_SENSORS.3.gz /usr/share/man/man3/SDL_HINT_BMP_SAVE_LEGACY_FORMAT.3.gz /usr/share/man/man3/SDL_HINT_CAMERA_DRIVER.3.gz /usr/share/man/man3/SDL_HINT_CPU_FEATURE_MASK.3.gz /usr/share/man/man3/SDL_HINT_...
* Added a hint SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN to prevent window interaction while cursor is hidden * Added SDL_GetDisplayDPI() to get the DPI information for a display * Added SDL_JoystickCurrentPowerLevel() to get the battery level of a joystick * Added SDL_Joystick...
}printf("it is a test\n");// Register all formats and codecsav_register_all();//SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengles2");if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) {fprintf(stderr,"Could not initialize SDL - %s\n",SDL_GetError());exit(1); ...
DisplayManager::DisplayManager(SDL_Window* window) : m_window(window), m_selected_fullscreen_display_id(0) { // SDL hint to disable OS level forced scaling and allow native resolution at non 100% scales SDL_SetHint("SDL_WINDOWS_DPI_SCALING", "true"); #ifdef _WIN32 // Windows hint ...
SDL_SetHint ("SDL_WINDOWS_DPI_AWARENESS", "1"); } I just won't call the hint at all now on the false case. I noticed that if the hint is on and fullscreen is toggled on, pixel will be distorted. Therefore I think there is still an issue with the hint when fullscreen is activ...
* Added the hint SDL_HINT_MOUSE_RELATIVE_SCALING to control whether relative motion is scaled by the screen DPI or renderer logical size * The default value for SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS is now false for better compatibility with modern window managers * Added SDL_GetPreferredLo...