Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2014-01-09 22:26:37 +0400
committerLluis Sanchez Gual <lluis@xamarin.com>2014-01-09 22:26:37 +0400
commit8fab7b14aa66915f6f3d0cad95c1dce933d3f063 (patch)
tree6da303d22b4eaecca24bc7f12c1cbb737b05d773 /Xwt.Gtk
parentb54729f4148692fdb05af94280cdd85bf6cd9c7e (diff)
[GTK] Canvas issue drawing fix
Adjust the drawing origin only when the canvas is not using its own GdkWindow.
Diffstat (limited to 'Xwt.Gtk')
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/CanvasBackend.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/CanvasBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/CanvasBackend.cs
index 2fd51a6b..29753f24 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/CanvasBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/CanvasBackend.cs
@@ -186,12 +186,12 @@ namespace Xwt.GtkBackend
} else {
ctx.Context = Gdk.CairoHelper.Create (GdkWindow);
}
- if (!VisibleWindow)
+ if (!VisibleWindow) {
ctx.Context.Translate (Allocation.X, Allocation.Y);
-
- // Set ContextBackend Origin
- ctx.Origin.X = Allocation.X;
- ctx.Origin.Y = Allocation.Y;
+ // Set ContextBackend Origin
+ ctx.Origin.X = Allocation.X;
+ ctx.Origin.Y = Allocation.Y;
+ }
return ctx;
}
}