From 31a0ad6fd591a54c5a5ab091f795373c7a93c4db Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 28 Mar 2025 17:43:24 +0100 Subject: [PATCH] =?UTF-8?q?per=20alguna=20rao,=20la=20tecla=20F12=20en=20V?= =?UTF-8?q?SC=20en=20windows=20en=20una=20sesi=C3=B3=20de=20debug=20em=20p?= =?UTF-8?q?enja=20el=20programa,=20per=20tant=20Screen::renderInfoDebug=20?= =?UTF-8?q?funciona=20correctament?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/screen.cpp | 3 --- 1 file changed, 3 deletions(-) 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);