diff options
author | Max Kellermann <max@duempel.org> | 2008-09-25 21:20:10 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-25 21:20:10 +0200 |
commit | 3809e2f13bb6642d3a874c24df7d854aa0aea8b5 (patch) | |
tree | 3acd44e438c1403bea51e0009d4c6c41a7a35f7d /src/screen_play.c | |
parent | 76270589b0b32e703c5d4854b859214215585e0a (diff) | |
download | mpd-3809e2f13bb6642d3a874c24df7d854aa0aea8b5.tar.gz mpd-3809e2f13bb6642d3a874c24df7d854aa0aea8b5.tar.xz mpd-3809e2f13bb6642d3a874c24df7d854aa0aea8b5.zip |
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.
Diffstat (limited to 'src/screen_play.c')
-rw-r--r-- | src/screen_play.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |