MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetBorderless

Method SetBorderless

Source/Engine/Platform/SDL/SDLWindow.cpp:646–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646void SDLWindow::SetBorderless(bool isBorderless, bool maximized)
647{
648 if (IsFullscreen())
649 SetIsFullscreen(false);
650
651 // Fixes issue of borderless window not going full screen
652 if (IsMaximized())
653 Restore();
654
655 _settings.HasBorder = !isBorderless;
656
657 BringToFront();
658
659 SDL_SetWindowBordered(_window, !isBorderless ? true : false);
660 if (maximized)
661 Maximize();
662 else
663 Focus();
664
665 CheckForWindowResize();
666}
667
668void SDLWindow::Restore()
669{

Callers 2

SetGameWindowModeMethod · 0.45
GameWindowClass · 0.45

Calls 4

RestoreFunction · 0.85
BringToFrontFunction · 0.85
MaximizeFunction · 0.85
FocusFunction · 0.85

Tested by

no test coverage detected