From 6a90b00b0bfe4636219b35c043feb5f4965d50e1 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Tue, 11 Jul 2017 14:25:53 +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 e672818b8..9785c9dac 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 = pWidth / (int)dpi; - pHeight = pHeight / (int)dpi; + *pWidth = *pWidth / (int)dpi; + *pHeight = *pHeight / (int)dpi; } #else if(*pWidth == 0 || *pHeight == 0)