| 2304 | } |
| 2305 | |
| 2306 | void Application::toggleFullscreen() |
| 2307 | { |
| 2308 | Uint32 fullscreen = SDL_GetWindowFlags(_window) & SDL_WINDOW_FULLSCREEN_DESKTOP; |
| 2309 | if (fullscreen) |
| 2310 | { |
| 2311 | SetMenu(g_mainWindow, _menu); |
| 2312 | SDL_ShowCursor(SDL_ENABLE); |
| 2313 | } |
| 2314 | |
| 2315 | SDL_SetWindowFullscreen(_window, fullscreen ^ SDL_WINDOW_FULLSCREEN_DESKTOP); |
| 2316 | |
| 2317 | if (!fullscreen) |
| 2318 | { |
| 2319 | SetMenu(g_mainWindow, NULL); |
| 2320 | SDL_ShowCursor(SDL_DISABLE); |
| 2321 | } |
| 2322 | } |
| 2323 | |
| 2324 | void Application::handle(const SDL_SysWMEvent* syswm) |
| 2325 | { |
nothing calls this directly
no outgoing calls
no test coverage detected