| 169 | } |
| 170 | |
| 171 | LRESULT App::OnWindowResized(void* context, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 172 | { |
| 173 | App* app = reinterpret_cast<App*>(context); |
| 174 | |
| 175 | if(!app->deviceManager.FullScreen() && wParam != SIZE_MINIMIZED) |
| 176 | { |
| 177 | int width, height; |
| 178 | app->window.GetClientArea(width, height); |
| 179 | |
| 180 | if(width != app->deviceManager.BackBufferWidth() || height != app->deviceManager.BackBufferHeight()) |
| 181 | { |
| 182 | app->BeforeReset(); |
| 183 | |
| 184 | app->deviceManager.SetBackBufferWidth(width); |
| 185 | app->deviceManager.SetBackBufferHeight(height); |
| 186 | app->deviceManager.Reset(); |
| 187 | |
| 188 | app->AfterReset(); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | return 0; |
| 193 | } |
| 194 | |
| 195 | void App::Exit() |
| 196 | { |
nothing calls this directly
no test coverage detected