mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Types
This commit is contained in:
parent
d6f6095358
commit
6a90b00b0b
|
@ -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 / (int)dpi;
|
||||
*pHeight = *pHeight / (int)dpi;
|
||||
}
|
||||
#else
|
||||
if(*pWidth == 0 || *pHeight == 0)
|
||||
|
|
Loading…
Reference in a new issue