This commit is contained in:
Dennis Felsing 2017-07-11 14:25:53 +02:00
parent d6f6095358
commit 6a90b00b0b

View file

@ -607,8 +607,8 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt
{ {
float dpi; float dpi;
SDL_GetDisplayDPI(0, NULL, &dpi, NULL); SDL_GetDisplayDPI(0, NULL, &dpi, NULL);
pWidth = pWidth / (int)dpi; *pWidth = *pWidth / (int)dpi;
pHeight = pHeight / (int)dpi; *pHeight = *pHeight / (int)dpi;
} }
#else #else
if(*pWidth == 0 || *pHeight == 0) if(*pWidth == 0 || *pHeight == 0)