hidpi support

This commit is contained in:
2024-03-10 16:47:26 +11:00
parent 0d891b4874
commit 21c51ee0a3

View File

@@ -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);