From aa4b6a7eb2842477724a106ec10f2516bfb0128b Mon Sep 17 00:00:00 2001 From: Luciano Ciccariello Date: Mon, 10 Feb 2020 18:58:52 +0000 Subject: [PATCH] Do not re-render when a resize request is sent --- OpenKh.Tools.Common/Controls/DrawPanel.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/OpenKh.Tools.Common/Controls/DrawPanel.cs b/OpenKh.Tools.Common/Controls/DrawPanel.cs index 1d477578d..650e9a298 100644 --- a/OpenKh.Tools.Common/Controls/DrawPanel.cs +++ b/OpenKh.Tools.Common/Controls/DrawPanel.cs @@ -287,7 +287,6 @@ private void ResizeRenderingEngine(int width, int height) drawing.Surface?.Dispose(); drawing.Surface = drawing.CreateSurface( width, height, Xe.Drawing.PixelFormat.Format32bppArgb, SurfaceType.InputOutput); - DoRender(); } } }