Next try for Windows

This commit is contained in:
Dennis Felsing 2017-07-11 14:37:12 +02:00
parent 6a90b00b0b
commit 38eacf21b7

View file

@ -607,8 +607,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
{
float dpi;
SDL_GetDisplayDPI(0, NULL, &dpi, NULL);
*pWidth = *pWidth / (int)dpi;
*pHeight = *pHeight / (int)dpi;
*pWidth = *pWidth * 96 / (int)dpi;
*pHeight = *pHeight * 96 / (int)dpi;
}
#else
if(*pWidth == 0 || *pHeight == 0)
@ -653,8 +653,6 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
if(g_Config.m_InpMouseOld)
SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1");
SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1");
m_pWindow = SDL_CreateWindow(
pName,
SDL_WINDOWPOS_UNDEFINED,