summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWildemann Stefan <stefan.wildemann@corpuls.com>2019-08-29 13:18:24 +0200
committerWildemann Stefan <stefan.wildemann@corpuls.com>2019-08-29 13:18:24 +0200
commit5578cb450a6e7be115cfb5a65cbe1b50216ec5b9 (patch)
treee0babb20ae5c43dbaf52f32243352459b0c077aa
parent9ebb1ce4109510b6e38a3388980089aa832cd30d (diff)
downloadnavit-5578cb450a6e7be115cfb5a65cbe1b50216ec5b9.tar.gz
Close before fill
-rw-r--r--navit/graphics/win32/graphics_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c
index b6d9e0129..33dd72d2b 100644
--- a/navit/graphics/win32/graphics_win32.c
+++ b/navit/graphics/win32/graphics_win32.c
@@ -871,10 +871,10 @@ static void draw_polygon_with_holes (struct graphics_priv *gr, struct graphics_g
} else
Polyline( gr->hMemDC, (POINT *)(holes[a]), ccount[a]);
}
- /* fill the shape */
- FillPath(gr->hMemDC);
/* done with this path */
EndPath(gr->hMemDC);
+ /* fill the shape */
+ FillPath(gr->hMemDC);
}
/* restore fill mode */