| 137 | } |
| 138 | |
| 139 | void Window::Resize(gfx::DimensionsI clientSize) |
| 140 | { |
| 141 | pmlog_verb(v::core_window)(); |
| 142 | const auto size = ComputeWindowDimensions(clientSize); |
| 143 | if (SetWindowPos(hWnd, nullptr, 0, 0, size.width, size.height, SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOMOVE) == FALSE) |
| 144 | { |
| 145 | pmlog_warn(std::format("failed to resize window {}", str::ToNarrow(GetTitle()))).hr(); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | gfx::DimensionsI Window::ComputeWindowDimensions(gfx::DimensionsI clientArea) |
| 150 | { |