diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-31 20:08:43 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-31 20:08:43 +0000 |
commit | 423f82e1c572f9043feebe8b58749559cbbccf39 (patch) | |
tree | b135fce3dfd6cfbf9033d5609ea7da50da7f0ca3 /navit/graphics.c | |
parent | 35fd3d0052c1ca8019de91b87ed59843c6438bc7 (diff) | |
download | navit-423f82e1c572f9043feebe8b58749559cbbccf39.tar.gz |
Add:Core:Disallow buffer: as icon name
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5521 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r-- | navit/graphics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index 56a924d57..a345c39d7 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -726,7 +726,8 @@ struct graphics_image * graphics_image_new_scaled_rotated(struct graphics *gra, this_->width=newwidth; this_->height=newheight; dbg(2,"Trying to load image '%s' for '%s' at %dx%d\n", new_name, path, newwidth, newheight); - this_->priv=gra->meth.image_new(gra->priv, &this_->meth, new_name, &this_->width, &this_->height, &this_->hot, rotate); + if (strcmp(new_name,"buffer:")) + this_->priv=gra->meth.image_new(gra->priv, &this_->meth, new_name, &this_->width, &this_->height, &this_->hot, rotate); if (this_->priv) { dbg(1,"Using image '%s' for '%s' at %dx%d\n", new_name, path, newwidth, newheight); g_free(new_name); |