diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-12-19 23:41:04 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-12-19 23:41:04 +0000 |
commit | 2c38f2566d81b3bb98c4d08481bf83c127d8c9b7 (patch) | |
tree | 26c46f00f3920beb8d3833baddc52e64648352b2 /navit/osd.c | |
parent | 2e6d4de639fc4b3759e7636176414a4189356b94 (diff) | |
download | navit-2c38f2566d81b3bb98c4d08481bf83c127d8c9b7.tar.gz |
Fix:osd:Remove strange, buggy and undocumented code for drawing a box around an OSD item based on attr_flags.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5977 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.c')
-rw-r--r-- | navit/osd.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/navit/osd.c b/navit/osd.c index d47653dc1..c4b9299ff 100644 --- a/navit/osd.c +++ b/navit/osd.c @@ -335,9 +335,6 @@ osd_set_std_attr(struct attr **attrs, struct osd_item *item, int flags) attr=attr_search(attrs, NULL, attr_text_color); if (attr) item->text_color=*attr->u.color; - attr=attr_search(attrs, NULL, attr_flags); - if (attr) - item->attr_flags=attr->u.num; attr=attr_search(attrs, NULL, attr_accesskey); if (attr) item->accesskey = g_strdup(attr->u.str); @@ -421,28 +418,10 @@ void osd_std_draw(struct osd_item *item) { struct point p[2]; - int flags=item->attr_flags; - graphics_draw_mode(item->gr, draw_mode_begin); p[0].x=0; p[0].y=0; graphics_draw_rectangle(item->gr, item->graphic_bg, p, item->w, item->h); - p[1].x=item->w-1; - p[1].y=0; - if (flags & 1) - graphics_draw_lines(item->gr, item->graphic_fg_text, p, 2); - p[0].x=item->w-1; - p[0].y=item->h-1; - if (flags & 2) - graphics_draw_lines(item->gr, item->graphic_fg_text, p, 2); - p[1].x=0; - p[1].y=item->h-1; - if (flags & 4) - graphics_draw_lines(item->gr, item->graphic_fg_text, p, 2); - p[0].x=0; - p[0].y=0; - if (flags & 8) - graphics_draw_lines(item->gr, item->graphic_fg_text, p, 2); } struct object_func osd_func = { |