summaryrefslogtreecommitdiff
path: root/osd
diff options
context:
space:
mode:
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-04-28 09:02:13 +0000
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-04-28 09:02:13 +0000
commit38a261e8a470cf7ff51a5b0a296946a833dff247 (patch)
tree242b215fcda17ec8ab5534328f8bd551bb97d42c /osd
parente83440d0893e3a70076aa6f91d5a983663df5f8a (diff)
downloadnavit-svn-38a261e8a470cf7ff51a5b0a296946a833dff247.tar.gz
Fix:Misc:Fix some more warnings
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/navit@2241 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'osd')
-rw-r--r--osd/core/osd_core.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/osd/core/osd_core.c b/osd/core/osd_core.c
index 3a31aa98..5a6f003c 100644
--- a/osd/core/osd_core.c
+++ b/osd/core/osd_core.c
@@ -224,7 +224,7 @@ osd_compass_new(struct navit *nav, struct osd_methods *meth,
this->osd_item.h = 80;
this->osd_item.navit = nav;
this->osd_item.font_size = 200;
- this->osd_item.meth.draw = &osd_compass_draw;
+ this->osd_item.meth.draw = osd_draw_cast(osd_compass_draw);
osd_set_std_attr(attrs, &this->osd_item, 2);
navit_add_callback(nav, callback_new_attr_1(callback_cast(osd_compass_init), attr_navit, this));
return (struct osd_priv *) this;
@@ -288,7 +288,7 @@ osd_button_new(struct navit *nav, struct osd_methods *meth,
struct attr *attr;
this->item.navit = nav;
- this->item.meth.draw = &osd_button_draw;
+ this->item.meth.draw = osd_draw_cast(osd_button_draw);
osd_set_std_attr(attrs, &this->item, 1);
@@ -432,7 +432,7 @@ osd_nav_next_turn_new(struct navit *nav, struct osd_methods *meth,
this->osd_item.navit = nav;
this->osd_item.h = 70;
this->osd_item.font_size = 200;
- this->osd_item.meth.draw = &osd_nav_next_turn_draw;
+ this->osd_item.meth.draw = osd_draw_cast(osd_nav_next_turn_draw);
osd_set_std_attr(attrs, &this->osd_item, 0);
this->icon_w = -1;
@@ -555,7 +555,7 @@ osd_nav_toggle_announcer_new(struct navit *nav, struct osd_methods *meth, struct
this->item.p.x = -64;
this->item.navit = nav;
this->item.p.y = 76;
- this->item.meth.draw = &osd_nav_toggle_announcer_draw;
+ this->item.meth.draw = osd_draw_cast(osd_nav_toggle_announcer_draw);
osd_set_std_attr(attrs, &this->item, 0);
@@ -633,7 +633,7 @@ osd_speed_warner_new(struct navit *nav, struct osd_methods *meth, struct attr **
this->item.navit = nav;
this->item.h=60;
this->active=-1;
- this->item.meth.draw = &osd_speed_warner_draw;
+ this->item.meth.draw = osd_draw_cast(osd_speed_warner_draw);
osd_set_std_attr(attrs, &this->item, 2);
this->d=this->item.w;
if (this->item.h < this->d)
@@ -994,7 +994,7 @@ osd_text_new(struct navit *nav, struct osd_methods *meth,
this->osd_item.h = 20;
this->osd_item.navit = nav;
this->osd_item.font_size = 200;
- this->osd_item.meth.draw = &osd_text_draw;
+ this->osd_item.meth.draw = osd_draw_cast(osd_text_draw);
osd_set_std_attr(attrs, &this->osd_item, 2);
this->active = -1;
@@ -1099,7 +1099,7 @@ osd_gps_status_new(struct navit *nav, struct osd_methods *meth,
this->osd_item.navit = nav;
this->osd_item.h = 40;
this->osd_item.font_size = 200;
- this->osd_item.meth.draw = &osd_gps_status_draw;
+ this->osd_item.meth.draw = osd_draw_cast(osd_gps_status_draw);
osd_set_std_attr(attrs, &this->osd_item, 0);
this->icon_w = -1;
@@ -1202,7 +1202,7 @@ osd_volume_new(struct navit *nav, struct osd_methods *meth,
this->osd_item.navit = nav;
this->osd_item.h = 40;
this->osd_item.font_size = 200;
- this->osd_item.meth.draw = &osd_volume_draw;
+ this->osd_item.meth.draw = osd_draw_cast(osd_volume_draw);
osd_set_std_attr(attrs, &this->osd_item, 0);
this->icon_w = -1;