MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / toggleFullscreenDesktop

Function toggleFullscreenDesktop

src/OpenLoco/src/Ui.cpp:804–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802
803#if !(defined(__APPLE__) && defined(__MACH__))
804 void toggleFullscreenDesktop()
805 {
806 auto flags = SDL_GetWindowFlags(_window);
807 if (flags & SDL_WINDOW_FULLSCREEN)
808 {
809 setDisplayMode(Config::ScreenMode::window);
810 }
811 else
812 {
813 setDisplayMode(Config::ScreenMode::fullscreenBorderless);
814 }
815 }
816#endif
817
818 // 0x004CD422

Callers 1

processMessagesFunction · 0.85

Calls 1

setDisplayModeFunction · 0.85

Tested by

no test coverage detected