summaryrefslogtreecommitdiff
path: root/navit/vehicle.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-01-21 11:21:39 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-01-21 11:21:39 +0000
commitf4e1b8a81efdade0b37b40bb5ed13dab14622af7 (patch)
tree68bd080bea1b69572e163d32932cf01e60c33130 /navit/vehicle.c
parent6a453b90439474b48185508d5161ee595dd3880f (diff)
downloadnavit-f4e1b8a81efdade0b37b40bb5ed13dab14622af7.tar.gz
Fix:Core:Make images in cursors work again
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5351 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r--navit/vehicle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c
index 7e49a6d19..757f1eeaa 100644
--- a/navit/vehicle.c
+++ b/navit/vehicle.c
@@ -373,6 +373,7 @@ vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int
struct color c;
this_->gra=graphics_overlay_new(gra, &this_->cursor_pnt, this_->cursor->w, this_->cursor->h, 65535, 0);
if (this_->gra) {
+ graphics_init(this_->gra);
this_->bg=graphics_gc_new(this_->gra);
c.r=0; c.g=0; c.b=0; c.a=0;
graphics_gc_set_foreground(this_->bg, &c);