Skip to content

Commit

Permalink
[desktop windows] Fix high DPI rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Dec 9, 2023
1 parent ab34277 commit 5d9b83c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platforms/desktop-shared/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ void application_trigger_fullscreen(bool fullscreen)

static int sdl_init(void)
{
#ifdef _WIN32
SDL_SetHint(SDL_HINT_WINDOWS_DPI_SCALING, "1");
#endif

if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0)
{
Log("Error: %s\n", SDL_GetError());
Expand Down

0 comments on commit 5d9b83c

Please sign in to comment.