| 917 | } |
| 918 | |
| 919 | void WindowImpl::PrepareWindow(bool fullscreen) |
| 920 | { |
| 921 | if (fullscreen) |
| 922 | { |
| 923 | SetForegroundWindow(m_handle); |
| 924 | ShowWindow(m_handle, SW_SHOW); |
| 925 | } |
| 926 | |
| 927 | // Cache window position/size after creation |
| 928 | RECT clientRect, windowRect; |
| 929 | GetClientRect(m_handle, &clientRect); |
| 930 | GetWindowRect(m_handle, &windowRect); |
| 931 | |
| 932 | m_position.Set(windowRect.left, windowRect.top); |
| 933 | m_size.Set(clientRect.right - clientRect.left, clientRect.bottom - clientRect.top); |
| 934 | } |
| 935 | |
| 936 | bool WindowImpl::Initialize() |
| 937 | { |