1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-03 03:23:33 +02:00

Change if to elseif and remove return

This commit is contained in:
AllyTally 2023-08-23 12:51:55 -03:00 committed by Misa Elizabeth Kai
parent a8bf43adcc
commit 4148234225

View File

@ -172,11 +172,9 @@ void Screen::ResizeScreen(int x, int y)
int result = SDL_SetWindowFullscreen(m_window, 0); int result = SDL_SetWindowFullscreen(m_window, 0);
if (result != 0) if (result != 0)
{ {
recacheTextures();
vlog_error("Error: could not set the game to windowed mode: %s", SDL_GetError()); vlog_error("Error: could not set the game to windowed mode: %s", SDL_GetError());
return;
} }
if (x != -1 && y != -1) else if (x != -1 && y != -1)
{ {
SDL_SetWindowSize(m_window, windowWidth, windowHeight); SDL_SetWindowSize(m_window, windowWidth, windowHeight);
SDL_SetWindowPosition( SDL_SetWindowPosition(