summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--navit/osd/core/osd_core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/navit/osd/core/osd_core.c b/navit/osd/core/osd_core.c
index 40ea4350d..8b0802753 100644
--- a/navit/osd/core/osd_core.c
+++ b/navit/osd/core/osd_core.c
@@ -2239,8 +2239,11 @@ static void osd_nav_toggle_announcer_draw(struct osd_priv_common *opc, struct na
gr_image = graphics_image_new_scaled(opc->osd_item.gr, path, opc->osd_item.w, opc->osd_item.h);
if (!gr_image) {
g_free(path);
- path = graphics_icon_path("unknown.png");
- gr_image = graphics_image_new_scaled(opc->osd_item.gr, path, opc->osd_item.w, opc->osd_item.h);
+ if (this->active)
+ path = graphics_icon_path("sound_on.png");
+ else
+ path = graphics_icon_path("sound_off.png");
+ gr_image = graphics_image_new_scaled(opc->osd_item.gr, path, opc->osd_item.w, opc->osd_item.h);
}
dbg(lvl_debug, "gr_image=%p", gr_image);