remove more dead code

This commit is contained in:
Tim Felgentreff 2020-04-15 08:00:28 +02:00
parent 883d6681a8
commit 800c25b5fa

View file

@ -102,7 +102,6 @@ double FrameTicks; /// Frame length in ms
const EventCallback *Callbacks;
static bool RegenerateScreen = false;
bool IsSDLWindowVisible = true;
/*----------------------------------------------------------------------------
@ -315,7 +314,7 @@ void InitVideoSdl()
flags |= SDL_WINDOW_RESIZABLE;
}
if (true || !Video.Width || !Video.Height) {
if (!Video.Width || !Video.Height) {
Video.ViewportWidth = Video.Width;
Video.ViewportHeight = Video.Height;
Video.Width = 640;
@ -594,14 +593,6 @@ static void SdlDoEvent(const EventCallback &callbacks, SDL_Event &event)
}
}
void ValidateOpenGLScreen()
{
if (RegenerateScreen) {
Video.ResizeScreen(Video.Width, Video.Height);
RegenerateScreen = false;
}
}
/**
** Set the current callbacks
*/