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
1 changed files with 1 additions and 3 deletions

View File

@ -172,11 +172,9 @@ void Screen::ResizeScreen(int x, int y)
int result = SDL_SetWindowFullscreen(m_window, 0);
if (result != 0)
{
recacheTextures();
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_SetWindowPosition(