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_play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/screen_play.c') diff --git a/src/screen_play.c b/src/screen_play.c index 8258e18ae..555412905 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -64,7 +64,7 @@ playlist_repaint(struct mpdclient *c) static void playlist_repaint_if_active(struct mpdclient *c) { - if (get_cur_mode_id() == 0) /* XXX don't use the literal number */ + if (screen_is_visible(&screen_playlist)) playlist_repaint(c); } -- cgit v1.2.3