Fixed DPI awareness mode, fixed crash caused by patch that fixed drawing null skyboxes

This commit is contained in:
Mr-Wiseguy
2024-02-22 23:52:04 -05:00
parent b88c729d93
commit e97242af2e
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ void exit_error(const char* str, Ts ...args) {
}
ultramodern::gfx_callbacks_t::gfx_data_t create_gfx() {
SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "system");
SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2");
SDL_SetHint(SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS, "0");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) > 0) {
exit_error("Failed to initialize SDL2: %s\n", SDL_GetError());