| 63 | } |
| 64 | |
| 65 | void CWindow::GetPositionSize(int *x, int *y, int *width, int *height) |
| 66 | { |
| 67 | #if SDL_VERSION_ATLEAST(2, 0, 5) |
| 68 | int borderH; |
| 69 | SDL_GetWindowBordersSize(m_window, &borderH, nullptr, nullptr, nullptr); |
| 70 | #else |
| 71 | int borderH = 0; |
| 72 | #endif |
| 73 | SDL_GetWindowPosition(m_window, x, y); |
| 74 | *y = std::max(*y, borderH); |
| 75 | SDL_GetWindowSize(m_window, width, height); |
| 76 | } |
| 77 | |
| 78 | void CWindow::SetMinSize(const CSize &newMinSize) |
| 79 | { |
no test coverage detected