diff --git a/source/screen.cpp b/source/screen.cpp index 564080d..122b5c0 100644 --- a/source/screen.cpp +++ b/source/screen.cpp @@ -265,9 +265,6 @@ void Screen::adjustWindowSize() const int NEW_POS_X = old_pos_x + (old_width - WIDTH) / 2; const int NEW_POS_Y = old_pos_y + (old_height - HEIGHT) / 2; - SDL_Rect viewport = {0, 0, WIDTH, HEIGHT}; - SDL_SetRenderViewport(renderer_, &viewport); - SDL_SetWindowPosition(window_, std::max(NEW_POS_X, WINDOWS_DECORATIONS_), std::max(NEW_POS_Y, 0)); SDL_SetWindowSize(window_, WIDTH, HEIGHT);