Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ ChangeResolution
Method
ChangeResolution
src/video/sdl2_v.cpp:685–688 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
683
}
684
685
bool VideoDriver_SDL_Base::ChangeResolution(int w, int h)
686
{
687
return CreateMainSurface(w, h, true);
688
}
689
690
bool VideoDriver_SDL_Base::ToggleFullscreen(bool fullscreen)
691
{
Callers
1
ChangeResInGame
Function · 0.45
Calls
1
CreateMainSurface
Function · 0.85
Tested by
no test coverage detected