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();