diff options
author | pohlinkzei <pohlinkzei@gmx-topmail.de> | 2015-12-27 23:09:43 +0100 |
---|---|---|
committer | pohlinkzei <pohlinkzei@gmx-topmail.de> | 2015-12-27 23:09:43 +0100 |
commit | 33a4e61a16d64f9f0f01de8aae9bee54fa5df7be (patch) | |
tree | 6050e9a5a0a657a8edd6a2012335e1ffe1b60740 /navit | |
parent | 46f67d8937cfef6158eeee6e5ed039d29fc1b8f7 (diff) | |
download | navit-33a4e61a16d64f9f0f01de8aae9bee54fa5df7be.tar.gz |
OSD code cleanup
Diffstat (limited to 'navit')
-rw-r--r-- | navit/osd/core/osd_core.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/navit/osd/core/osd_core.c b/navit/osd/core/osd_core.c index aee281a17..47fd5e49c 100644 --- a/navit/osd/core/osd_core.c +++ b/navit/osd/core/osd_core.c @@ -269,7 +269,6 @@ struct route_guard { int update_period; struct color active_color; struct graphics_gc *red; - //struct graphics_gc *white; int width; }; @@ -489,7 +488,6 @@ static struct command_table commands[] = { struct odometer { int width; struct graphics_gc *orange; - //struct graphics_gc *white; struct callback *click_cb; char *text; //text of label attribute for this osd char *name; //unique name of the odometer (needed for handling multiple odometers persistently) @@ -1004,7 +1002,6 @@ osd_odometer_new(struct navit *nav, struct osd_methods *meth, struct cmd_interface { int width; struct graphics_gc *orange; - //struct graphics_gc *white; int update_period; //in sec char* text; struct graphics_image *img; @@ -1159,7 +1156,6 @@ osd_cmd_interface_new(struct navit *nav, struct osd_methods *meth, struct stopwatch { int width; struct graphics_gc *orange; - //struct graphics_gc *white; struct callback *click_cb; struct color idle_color; //text color when counter is idle @@ -2142,7 +2138,6 @@ struct osd_speed_cam_entry { struct osd_speed_cam { int width; int flags; - //struct graphics_gc *white; struct graphics_gc *orange; struct graphics_gc *red; struct color idle_color; @@ -2433,7 +2428,6 @@ struct osd_speed_warner { struct graphics_gc *green; struct graphics_gc *grey; struct graphics_gc *black; - //struct graphics_gc *white; int width; int active; int d; @@ -2554,7 +2548,6 @@ osd_speed_warner_init(struct osd_priv_common *opc, struct navit *nav) { struct osd_speed_warner *this = (struct osd_speed_warner *)opc->data; - //struct color white_color={0xffff,0xffff,0xffff,0x0000}; struct color red_color={0xffff,0,0,0xffff}; struct color green_color={0,0xffff,0,0xffff}; struct color grey_color={0x8888,0x8888,0x8888,0x8888}; @@ -2594,9 +2587,6 @@ osd_speed_warner_init(struct osd_priv_common *opc, struct navit *nav) g_free(this->label_str); this->label_str = NULL; - //opc->osd_item.graphic_fg=graphics_gc_new(opc->osd_item.gr); - //graphics_gc_set_foreground(opc->osd_item.graphic_fg, &white_color); - graphics_gc_set_linewidth(opc->osd_item.graphic_fg, this->d/2-2 /*-this->width*/ ); this->red=graphics_gc_new(opc->osd_item.gr); @@ -3660,7 +3650,6 @@ osd_scale_init(struct osd_priv_common *opc, struct navit *nav) { struct osd_scale *this = (struct osd_scale *)opc->data; - //struct color color_white={COLOR_WHITE_}; struct color color_black={COLOR_BLACK_}; struct graphics *gra = navit_get_graphics(nav); dbg(lvl_debug, "enter\n"); @@ -3671,8 +3660,6 @@ osd_scale_init(struct osd_priv_common *opc, struct navit *nav) opc->osd_item.gr=gra; opc->osd_item.font = graphics_font_new(opc->osd_item.gr, opc->osd_item.font_size, 1); opc->osd_item.graphic_fg=graphics_gc_new(opc->osd_item.gr); - //opc->osd_item.color_white=color_white; - //graphics_gc_set_foreground(opc->osd_item.graphic_fg, &opc->osd_item.color_white); } this->black=graphics_gc_new(opc->osd_item.gr); graphics_gc_set_foreground(this->black, &color_black); |