MCPcopy Create free account
hub / github.com/EasyRPG/Player / ToggleFullscreen

Method ToggleFullscreen

src/platform/sdl/sdl_ui.cpp:388–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388void SdlUi::ToggleFullscreen() {
389 BeginDisplayModeChange();
390 if (toggle_fs_available && mode_changing) {
391 if ((current_display_mode.flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) {
392 current_display_mode.flags &= ~SDL_FULLSCREEN;
393 } else {
394 current_display_mode.flags |= SDL_FULLSCREEN;
395 }
396 }
397 EndDisplayModeChange();
398}
399
400void SdlUi::ToggleZoom() {
401 BeginDisplayModeChange();

Callers 3

RefreshVideoMethod · 0.45
UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected