MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ToggleFullScreen

Function ToggleFullScreen

src/gfx.cpp:1769–1776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1767}
1768
1769bool ToggleFullScreen(bool fs)
1770{
1771 bool result = VideoDriver::GetInstance()->ToggleFullscreen(fs);
1772 if (_fullscreen != fs && _resolutions.empty()) {
1773 Debug(driver, 0, "Could not find a suitable fullscreen resolution");
1774 }
1775 return result;
1776}
1777
1778void SortResolutions()
1779{

Callers 4

OnClickMethod · 0.85
WndProcGdiFunction · 0.85
PollEventMethod · 0.85
PollEventMethod · 0.85

Calls 2

ToggleFullscreenMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected