Add SDL_WINDOW_ALLOW_HIGHDPI to SDL_CreateWindow flags so Retina support works on OSX.

This commit is contained in:
Remi Gillig
2015-06-05 16:34:52 +01:00
parent 933b958e94
commit a7c95df6a9
2 changed files with 3 additions and 0 deletions

View File

@@ -1481,6 +1481,8 @@ void CreateMainFrame(FrameCreationCallback inOnFrame, int inWidth, int inHeight,
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, true);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 2);
}
requestWindowFlags |= SDL_WINDOW_ALLOW_HIGHDPI;
}
#ifdef HX_LINUX