From c8acef28fbf4821b0a966832326fe930600f563e Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 15 Feb 2016 22:45:15 +0100 Subject: [PATCH] ensure dirtyRects are added if dirtyState not cleared between updates --- src/OpenTKGameWindow.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs index 48080912..bc5c5cc4 100644 --- a/src/OpenTKGameWindow.cs +++ b/src/OpenTKGameWindow.cs @@ -351,8 +351,12 @@ namespace Crow clipping.stroke (ctx, Color.Red.AdjustAlpha(0.5)); #endif + if (isDirty) + DirtyRect += clipping.Bounds; + else + DirtyRect = clipping.Bounds; isDirty = true; - DirtyRect = clipping.Bounds; + DirtyRect.Left = Math.Max (0, DirtyRect.Left); DirtyRect.Top = Math.Max (0, DirtyRect.Top); DirtyRect.Width = Math.Min (ClientRectangle.Width - DirtyRect.Left, DirtyRect.Width); -- 2.47.3