summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWildemann Stefan <stefan.wildemann@corpuls.com>2019-08-29 14:07:37 +0200
committerWildemann Stefan <stefan.wildemann@corpuls.com>2019-08-29 14:07:37 +0200
commit5d2b3484cff87c6d876f4283f6f8d91895c06553 (patch)
treeaaed0fb4891bf9b19c9dfaa3ffbeb3f3e2eca52c
parent0c7e6cbb06a9f053afc66613e152db84d7c36fd2 (diff)
downloadnavit-windows_draw_holes.tar.gz
Correct windows callback listwindows_draw_holes
-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 6d9430e4e..6bcad3be6 100644
--- a/navit/graphics/win32/graphics_win32.c
+++ b/navit/graphics/win32/graphics_win32.c
@@ -857,7 +857,6 @@ static void draw_polygon_with_holes (struct graphics_priv *gr, struct graphics_g
Polyline( gr->hMemDC, points, count );
} else
Polyline( gr->hMemDC, (POINT *)p, count);
-
/* add inner polygons */
for(a = 0; a<hole_count; a ++) {
if (sizeof(POINT) != sizeof(struct point)) {
@@ -874,7 +873,7 @@ static void draw_polygon_with_holes (struct graphics_priv *gr, struct graphics_g
/* done with this path */
EndPath(gr->hMemDC);
/* fill the shape */
- StrokePath(gr->hMemDC);
+ FillPath(gr->hMemDC);
}
/* restore fill mode */
@@ -1519,6 +1518,7 @@ static struct graphics_methods graphics_methods = {
get_text_bbox,
overlay_disable,
overlay_resize,
+ NULL, /* set_attr */
NULL, /* show_native_keyboard */
NULL, /* hide_native_keyboard */
NULL, /* get dpi */