summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authorOLFDB <olf@eisenzelt.de>2021-08-28 20:35:45 +0200
committerGitHub <noreply@github.com>2021-08-28 20:35:45 +0200
commite0e21a0974b0356e13926dab14ef7dd66dfac9bb (patch)
tree9e3a6871d07005b244196c518f938fe333cf53c6 /navit
parent0978c41942e08bfa98e8aafe9c259c2c9764b27b (diff)
downloadnavit-e0e21a0974b0356e13926dab14ef7dd66dfac9bb.tar.gz
fix:core:use default icons as fallback (#1121)
Diffstat (limited to 'navit')
-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);