From 3809e2f13bb6642d3a874c24df7d854aa0aea8b5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 21:20:10 +0200 Subject: screen: replaced get_cur_mode_id() with screen_is_visible() Screen code shouldn't know anything about the screen ids (which will be eliminated completely later). Instead of comparing ids, compare the screen_functions pointer. --- src/screen_lyrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/screen_lyrics.c') diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 3c0393488..ec552ee33 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -99,7 +99,7 @@ lyrics_repaint(void) static void lyrics_repaint_if_active(void) { - if (get_cur_mode_id() == 104) { /* XXX don't use the literal number */ + if (screen_is_visible(&screen_lyrics)) { lyrics_repaint(); /* XXX repaint the screen title */ -- cgit v1.2.3