From 94844a3e691ab2885626658fd1dfae7ba90fde36 Mon Sep 17 00:00:00 2001 From: Tom Laird-McConnell Date: Sat, 30 Nov 2024 11:29:29 -0800 Subject: [PATCH] Revert "dispose of pixelbuffer" This reverts commit ff89176f73157e82a0ab378ff271847c3e388771. --- src/Consolonia.Core/Infrastructure/ConsoleWindow.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Consolonia.Core/Infrastructure/ConsoleWindow.cs b/src/Consolonia.Core/Infrastructure/ConsoleWindow.cs index ce806ca6..77770287 100644 --- a/src/Consolonia.Core/Infrastructure/ConsoleWindow.cs +++ b/src/Consolonia.Core/Infrastructure/ConsoleWindow.cs @@ -334,7 +334,6 @@ private void OnConsoleOnResized() // dispatch to the UI thread Dispatcher.UIThread.Post(() => { - (PixelBuffer as IDisposable)?.Dispose(); PixelBuffer = new PixelBuffer(Console.Size); var size = new Size(Console.Size.Width, Console.Size.Height); Resized!(size, WindowResizeReason.Unspecified);