mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Next try for Windows
This commit is contained in:
parent
6a90b00b0b
commit
38eacf21b7
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue