summaryrefslogtreecommitdiff
path: root/navit/graphics.c
diff options
context:
space:
mode:
authorjandegr <jandegr@users.noreply.github.com>2019-09-26 21:43:50 +0200
committerPierre GRANDIN <pgrandin@users.noreply.github.com>2019-09-26 13:43:50 -0600
commitd18dec5ec22551ea9feeb6aedf5c226a6f998fe6 (patch)
tree6b514f5bfb063701efbb4f15f8c12ad3bd75c1eb /navit/graphics.c
parentf304cfc699a73f9c0677d5d3315cd7e3d5daea30 (diff)
downloadnavit-d18dec5ec22551ea9feeb6aedf5c226a6f998fe6.tar.gz
Fix:android:64 bit and cleanup2 (#877)
https://github.com/navit-gps/navit/pull/877
Diffstat (limited to 'navit/graphics.c')
-rw-r--r--navit/graphics.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/navit/graphics.c b/navit/graphics.c
index 6aaa0cb09..bc3177322 100644
--- a/navit/graphics.c
+++ b/navit/graphics.c
@@ -2469,13 +2469,6 @@ char *graphics_icon_path(const char *icon) {
ret=g_strdup(icon);
else {
#ifdef HAVE_API_ANDROID
- // get resources for the correct screen density
- //
- // this part not needed, android unpacks only the correct version into res/drawable dir!
- // dbg(lvl_debug,"android icon_path %s",icon);
- // static char *android_density;
- // android_density = getenv("ANDROID_DENSITY");
- // ret=g_strdup_printf("res/drawable-%s/%s",android_density ,icon);
ret=g_strdup_printf("res/drawable/%s",icon);
#else
if (! navit_sharedir)
@@ -3180,7 +3173,7 @@ void graphics_displaylist_draw(struct graphics *gra, struct displaylist *display
graphics_background_gc(gra, gra->gc[0]);
if (flags & 1)
callback_list_call_attr_0(gra->cbl, attr_predraw);
- graphics_draw_mode(gra, draw_mode_begin);
+ graphics_draw_mode(gra, (flags & 8)?draw_mode_begin_clear:draw_mode_begin);
if (!(flags & 2))
graphics_draw_rectangle(gra, gra->gc[0], &gra->r.lu, gra->r.rl.x-gra->r.lu.x, gra->r.rl.y-gra->r.lu.y);
if (l) {