| 248 | } |
| 249 | |
| 250 | void ScreenService::Draw() |
| 251 | { |
| 252 | #if USE_EDITOR |
| 253 | |
| 254 | // Not supported |
| 255 | |
| 256 | #else |
| 257 | |
| 258 | if (Fullscreen.HasValue()) |
| 259 | { |
| 260 | auto win = Engine::MainWindow; |
| 261 | if (win) |
| 262 | { |
| 263 | win->SetIsFullscreen(Fullscreen.GetValue()); |
| 264 | } |
| 265 | |
| 266 | Fullscreen.Reset(); |
| 267 | } |
| 268 | |
| 269 | if (Size.HasValue()) |
| 270 | { |
| 271 | auto win = Engine::MainWindow; |
| 272 | if (win) |
| 273 | { |
| 274 | win->SetClientSize(Size.GetValue()); |
| 275 | } |
| 276 | |
| 277 | Size.Reset(); |
| 278 | } |
| 279 | |
| 280 | #endif |
| 281 | } |
no test coverage detected