High DPI window fixes

This commit is contained in:
Hyper
2024-10-20 23:14:20 +01:00
parent b39bc1e065
commit a272c6d32a
4 changed files with 11 additions and 9 deletions
+2
View File
@@ -87,6 +87,8 @@ void Window::Init()
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);
SDL_AddEventWatch(Window_OnSDLEvent, s_window);
SetProcessDPIAware();
s_window = SDL_CreateWindow(title,
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,