MCPcopy Create free account
hub / github.com/SFML/SFML / cleanup

Method cleanup

src/SFML/Window/Win32/WindowImplWin32.cpp:530–547  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

528
529////////////////////////////////////////////////////////////
530void WindowImplWin32::cleanup()
531{
532 // Restore the previous video mode (in case we were running in fullscreen)
533 if (fullscreenWindow == this)
534 {
535 ChangeDisplaySettingsW(nullptr, 0);
536 fullscreenWindow = nullptr;
537 }
538
539 // Unhide the mouse cursor (in case it was hidden)
540 setMouseCursorVisible(true);
541
542 // No longer track the cursor
543 setTracking(false);
544
545 // No longer capture the cursor
546 ReleaseCapture();
547}
548
549
550////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected