diff --git a/gtk-sharp/MapDrawingArea.cs b/gtk-sharp/MapDrawingArea.cs index 786edb7..a0783f2 100644 --- a/gtk-sharp/MapDrawingArea.cs +++ b/gtk-sharp/MapDrawingArea.cs @@ -560,6 +560,7 @@ void DrawTriangle(Drawer.Color c, double X, double Y, double angle, bool highlig void DrawImage(Gdk.Pixbuf image, double X, double Y, bool highlight) { int x = (int) X - image.Width / 2; int y = (int) Y - image.Height / 2; +#if !SYSTEM_DRAWING if (drawer is CairoDrawer) { Cairo.Context context = ((CairoDrawer) drawer).Context; @@ -575,6 +576,9 @@ void DrawImage(Gdk.Pixbuf image, double X, double Y, bool highlight) { Gdk.CairoHelper.SetSourcePixbuf(context, image, x, y); context.Paint(); } else { +#else + { +#endif if (highlight) { Gdk.GC gc = new Gdk.GC(GdkWindow); Gdk.Pixmap mask = new Gdk.Pixmap(null, image.Width, image.Height, 1);