Browse Source

GTK: Use InvalidateRect instead of Draw

pull/140/head
Nikita Tsukanov 11 years ago
parent
commit
c3bc823bd0
  1. 5
      src/Gtk/Perspex.Gtk/WindowImpl.cs

5
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)

Loading…
Cancel
Save