From c3bc823bd0f5d1631cfb3f56214b6a549676fc44 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Mon, 14 Sep 2015 21:18:22 +0300 Subject: [PATCH] GTK: Use InvalidateRect instead of Draw --- src/Gtk/Perspex.Gtk/WindowImpl.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Gtk/Perspex.Gtk/WindowImpl.cs b/src/Gtk/Perspex.Gtk/WindowImpl.cs index 4247a3d853..2e5da0c42f 100644 --- a/src/Gtk/Perspex.Gtk/WindowImpl.cs +++ b/src/Gtk/Perspex.Gtk/WindowImpl.cs @@ -78,9 +78,8 @@ namespace Perspex.Gtk public void Invalidate(Rect rect) { -#pragma warning disable CS0612 // Type or member is obsolete - Draw(new Rectangle { X = (int)rect.X, Y = (int)rect.Y, Width = (int)rect.Width, Height = (int)rect.Height }); -#pragma warning restore CS0612 // Type or member is obsolete + base.GdkWindow.InvalidateRect (new Rectangle ((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height), true); + } public Point PointToScreen(Point point)