From d6f6095358bed508610ed549453579c43a089ca8 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Tue, 11 Jul 2017 14:24:28 +0200 Subject: [PATCH] Types --- src/engine/client/backend_sdl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index b4a7f6e71..e672818b8 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -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)