| 607 | void Window::setCurrent() {} |
| 608 | |
| 609 | void Window::centerToDisplay() { |
| 610 | if ( isWindowed() ) { |
| 611 | setPosition( mWindow.DesktopResolution.getWidth() / 2 - mWindow.WindowConfig.Width / 2, |
| 612 | mWindow.DesktopResolution.getHeight() / 2 - mWindow.WindowConfig.Height / 2 ); |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | Rect Window::getBorderSize() const { |
| 617 | return Rect(); |