Fix crash when resizing the window

このコミットが含まれているのは:
Sergio Pedri committed 2024-09-26 18:14:50 -07:00
1 親 4dd76fda4e
コミット b726b2306e
1ファイル変更
+1 -4
+1 -4
ファイルの表示
@@ -85,10 +85,7 @@ internal sealed class CoreWindowApplication
if (this.isResizePending)
{
// Resize the swapchain if needed (the size is calculated automatically)
this.canvasSwapChain!.ResizeBuffers(
newWidth: 0,
newHeight: 0,
newDpi: DisplayInformation.GetForCurrentView().LogicalDpi);
this.canvasSwapChain!.ResizeBuffers(0, 0);
BitmapSize bitmapSize = this.canvasSwapChain!.SizeInPixels;