Browse Source

Set surface size to be the logical size

pull/361/head
Gleb Mazovetskiy 7 years ago committed by Anders Jenbo
parent
commit
afaa25193a
  1. 4
      SourceX/dx.cpp

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

Loading…
Cancel
Save