Skip to content

Commit

Permalink
fix windows compile
Browse files Browse the repository at this point in the history
  • Loading branch information
treellama committed Dec 29, 2015
1 parent 9b84a5b commit 24cc4be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gtk-sharp/MapDrawingArea.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit 24cc4be

Please sign in to comment.