Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix the windowed mode fallback for SDL1.2 #1692
The SdlUi::RequestVideoMode function is supposed to have a fallback to windowed mode when neither 320x240 nor 640x480 are available. Due to an oversight the loop always sets the SDL_FULLSCREEN flag at the beginning, so the windowed mode list is never checked, and it gets stuck in and endless loop. I moved the SDL_FULLSCREEN flag setting out of the loop to fix this. I noticed it on AROS, where the VESA driver only has one fixed resolution available after booting.