From 21c51ee0a3e235c93b251217e0af6934f4060050 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Sun, 10 Mar 2024 16:47:26 +1100 Subject: [PATCH] hidpi support --- Lesson10.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson10.cpp b/Lesson10.cpp index 6078e6f..2de8721 100644 --- a/Lesson10.cpp +++ b/Lesson10.cpp @@ -315,7 +315,7 @@ bool CreateGLWindow(char* title, int width, int height, int bits, bool fullscree if (!(hWnd = SDL_CreateWindow(title, WindowRect.w, // Window Width WindowRect.h, // Window Height - SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE))) + SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY))) { KillGLWindow(); // Reset The Display SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "ERROR", "Window Creation Error.", NULL);