diff options
author | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-10-16 18:09:34 +0000 |
---|---|---|
committer | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-10-16 18:09:34 +0000 |
commit | 5d6b4890fb05bea517c62d7e281e6dee309aba15 (patch) | |
tree | fa4d99e15de13852623b8724e5368256df3320e8 /navit/osd.c | |
parent | f6a38edc8ee432a751a1324f223c5538d7e549a6 (diff) | |
download | navit-5d6b4890fb05bea517c62d7e281e6dee309aba15.tar.gz |
Fix:osd:Fixed OSD items display garbage when resized|thank you mvglasow
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5910 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.c')
-rw-r--r-- | navit/osd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/osd.c b/navit/osd.c index 00e2411fb..33a577694 100644 --- a/navit/osd.c +++ b/navit/osd.c @@ -169,7 +169,7 @@ osd_std_resize(struct osd_item *item) * @param h Available screen height in pixels (the height that corresponds to * 100%) */ -static void +void osd_std_calculate_sizes(struct osd_item *item, int w, int h) { if (item->rel_w) { @@ -208,9 +208,11 @@ osd_std_calculate_sizes_and_redraw(struct osd_item *item, struct osd_priv *priv, osd_std_calculate_sizes(item, w, h); osd_std_resize(item); + item->do_draw=1; if (item->meth.draw) { if (navit_get_attr(item->navit, attr_vehicle, &vehicle_attr, NULL)) { item->meth.draw(priv, item->navit, vehicle_attr.u.vehicle); + item->do_draw=0; } } } |