This commit is contained in:
Dennis Felsing 2017-07-11 14:24:28 +02:00
parent 7c53a32d9c
commit d6f6095358

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 /= dpi;
pHeight /= dpi;
pWidth = pWidth / (int)dpi;
pHeight = pHeight / (int)dpi;
}
#else
if(*pWidth == 0 || *pHeight == 0)