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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user