Skip to content

Commit

Permalink
bring back HighDPI support on windows
Browse files Browse the repository at this point in the history
This was removed as a test, but it didn't make a difference
  • Loading branch information
midwan committed Jun 13, 2024
1 parent 323bff3 commit d55fb38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ static void SDL2_init()
mode |= SDL_WINDOW_HIDDEN;
else
mode |= SDL_WINDOW_SHOWN;
// Set Window allow high DPI by default
mode |= SDL_WINDOW_ALLOW_HIGHDPI;
#ifdef USE_OPENGL
mode |= SDL_WINDOW_OPENGL;
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/osdep/gui/ShowMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ static void InitShowMessage(const std::string& message)
mode |= SDL_WINDOW_HIDDEN;
else
mode |= SDL_WINDOW_SHOWN;
// Set Window allow high DPI by default
mode |= SDL_WINDOW_ALLOW_HIGHDPI;
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions src/osdep/gui/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ void amiberry_gui_init()
mode |= SDL_WINDOW_HIDDEN;
else
mode |= SDL_WINDOW_SHOWN;
// Set Window allow high DPI by default
mode |= SDL_WINDOW_ALLOW_HIGHDPI;
}
else
{
Expand Down

0 comments on commit d55fb38

Please sign in to comment.