per alguna rao, la tecla F12 en VSC en windows en una sesió de debug em penja el programa, per tant Screen::renderInfoDebug funciona correctament

This commit is contained in:
2025-03-28 17:43:24 +01:00
parent 1db80485a6
commit 31a0ad6fd5

View File

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