mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Types
This commit is contained in:
parent
7c53a32d9c
commit
d6f6095358
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue