MCPcopy Create free account
hub / github.com/ddnet/ddnet / SetWindowGrab

Method SetWindowGrab

src/engine/client/backend_sdl.cpp:1716–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1714}
1715
1716void CGraphicsBackend_SDL_GL::SetWindowGrab(bool Grab)
1717{
1718 // Works around https://github.com/libsdl-org/sdl2-compat/issues/578.
1719 if(!m_pWindow)
1720 return;
1721
1722 SDL_SetWindowGrab(m_pWindow, Grab ? SDL_TRUE : SDL_FALSE);
1723}
1724
1725bool CGraphicsBackend_SDL_GL::ResizeWindow(int w, int h, int RefreshRate)
1726{

Callers 3

OnInitMethod · 0.45
MouseModeAbsoluteMethod · 0.45
MouseModeRelativeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected