diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-11-06 20:16:05 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-11-06 20:16:05 +0000 |
commit | ae0287caa2ea32f6a7973dc0c9d020d2b4bfbe92 (patch) | |
tree | b7c984f6a8276c2add07f00f8009839091e32219 /navit/layout.c | |
parent | 9de8dcd5c5fdb6ae0d715b0b3a8dffa551e0826b (diff) | |
download | navit-ae0287caa2ea32f6a7973dc0c9d020d2b4bfbe92.tar.gz |
Add:core:Added possibility to use pngs as cursor, added cursor desings from nekohayo
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1662 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/layout.c')
-rw-r--r-- | navit/layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/layout.c b/navit/layout.c index 41722a29b..a183fe8f4 100644 --- a/navit/layout.c +++ b/navit/layout.c @@ -285,7 +285,7 @@ struct icon * icon_new(struct attr *parent, struct attr **attrs) { struct element *e; - struct attr *src,*w,*h; + struct attr *src,*w,*h,*rotation; src=attr_search(attrs, NULL, attr_src); if (! src) return NULL; @@ -301,6 +301,8 @@ icon_new(struct attr *parent, struct attr **attrs) e->u.icon.height=h->u.num; else e->u.icon.height=-1; + if ((rotation=attr_search(attrs, NULL, attr_rotation))) + e->u.icon.rotation=rotation->u.num; strcpy(e->u.icon.src,src->u.str); return (struct icon *)e; |