@@ -1906,25 +1906,25 @@ bool CursorVars::UpdateCursorPosition(in
return need_warp;
}
bool ChangeResInGame(int width, int height)
{
return (_screen.width == width && _screen.height == height) || VideoDriver::GetInstance()->ChangeResolution(width, height);
bool ToggleFullScreen(bool fs)
bool result = VideoDriver::GetInstance()->ToggleFullscreen(fs);
if (_fullscreen != fs && _resolutions.empty()) {
DEBUG(driver, 0, "Could not find a suitable fullscreen resolution");
Debug(driver, 0, "Could not find a suitable fullscreen resolution");
return result;
void SortResolutions()
std::sort(_resolutions.begin(), _resolutions.end());
/**
* Resolve GUI zoom level, if auto-suggestion is requested.
*/