| 577 | } |
| 578 | |
| 579 | void UWPWindow::OnSizeChange() |
| 580 | { |
| 581 | // Update the actual rendering output resolution |
| 582 | _clientSize.X = ConvertDipsToPixels(_logicalSize.X, (float)_dpi); |
| 583 | _clientSize.Y = ConvertDipsToPixels(_logicalSize.Y, (float)_dpi); |
| 584 | |
| 585 | // Check if output has been created |
| 586 | if (_swapChain != nullptr) |
| 587 | { |
| 588 | const int32 width = Math::Max((int32)_clientSize.X, 0); |
| 589 | const int32 height = Math::Max((int32)_clientSize.Y, 0); |
| 590 | if (width > 0 && height > 0 && (width != _swapChain->GetWidth() || height != _swapChain->GetHeight())) |
| 591 | { |
| 592 | OnResize(width, height); |
| 593 | } |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | #endif |
nothing calls this directly
no test coverage detected