From afaa25193ab27442565134f9bb16d3bc59858e55 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Tue, 15 Oct 2019 01:07:57 +0100 Subject: [PATCH] Set surface size to be the logical size --- SourceX/dx.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SourceX/dx.cpp b/SourceX/dx.cpp index 0f8c935ff..8ca8903e6 100644 --- a/SourceX/dx.cpp +++ b/SourceX/dx.cpp @@ -61,9 +61,7 @@ void dx_create_primary_surface() #ifndef USE_SDL1 if (renderer) { int width, height; - if (SDL_GetRendererOutputSize(renderer, &width, &height) <= -1) { - ErrSdl(); - } + SDL_RenderGetLogicalSize(renderer, &width, &height); Uint32 format; if (SDL_QueryTexture(texture, &format, nullptr, nullptr, nullptr) < 0) ErrSdl();