From fa7048d66d95c434f40b761b8d7673583dd2233d Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sat, 13 Oct 2012 22:25:10 +0200 Subject: Redraw favicon when it has been changed. Improve the window icon / favicon interface. --- atari/gui.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'atari/gui.c') diff --git a/atari/gui.c b/atari/gui.c index 0b76d39ba..a2dac21d3 100755 --- a/atari/gui.c +++ b/atari/gui.c @@ -553,8 +553,12 @@ gui_window_remove_caret(struct gui_window *w) void gui_window_set_icon(struct gui_window *g, hlcache_handle *icon) -{ - g->icon = (icon != NULL) ? content_get_bitmap(icon) : NULL; +{ + struct bitmap *bmp_icon; + + bmp_icon = (icon != NULL) ? content_get_bitmap(icon) : NULL; + + window_set_icon(g, bmp_icon); } void -- cgit v1.2.3