summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWildemann Stefan <stefan.wildemann@corpuls.com>2019-08-29 11:30:45 +0200
committerWildemann Stefan <stefan.wildemann@corpuls.com>2019-08-29 11:30:45 +0200
commitbd6b534a5ce2c193b21e4025db02da2733fc5394 (patch)
tree1a06d2012038bd379da61e25810aa4922fd73131
parent074e078f4c40c9530fd778c86054eac60a3c77ff (diff)
downloadnavit-bd6b534a5ce2c193b21e4025db02da2733fc5394.tar.gz
Cannot build this for CE. Disable solution for CE
-rw-r--r--navit/graphics/win32/graphics_win32.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c
index 569576f94..848a9d288 100644
--- a/navit/graphics/win32/graphics_win32.c
+++ b/navit/graphics/win32/graphics_win32.c
@@ -827,6 +827,11 @@ static void draw_polygon(struct graphics_priv *gr, struct graphics_gc_priv *gc,
SelectObject( gr->hMemDC, holdpen);
}
+#if HAVE_API_WIN32_CE
+/*
+ * Windows CE doesn't support PaintPath used for other versions. No polygon with holes support for CE yet.
+ */
+#else
static void draw_polygon_with_holes (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count,
int hole_count, int* ccount, struct point **holes) {
/* remeber pen and brush */
@@ -875,6 +880,7 @@ static void draw_polygon_with_holes (struct graphics_priv *gr, struct graphics_g
SelectObject( gr->hMemDC, holdbrush);
SelectObject( gr->hMemDC, holdpen);
}
+#endif
static void draw_rectangle(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int w, int h) {
HPEN holdpen = SelectObject( gr->hMemDC, gc->hpen );
@@ -1513,7 +1519,11 @@ static struct graphics_methods graphics_methods = {
NULL, /* show_native_keyboard */
NULL, /* hide_native_keyboard */
NULL, /* get dpi */
+#if HAVE_API_WIN32_CE
+ NULL, /* draw_polygon_with_holes */
+#else
draw_polygon_with_holes
+#endif
};