aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-22 10:21:34 +0200
committerMax Kellermann <max@duempel.org>2008-09-22 10:21:34 +0200
commit31283ca1beceb15145360674da4690081bd30d97 (patch)
tree3163c4942f9406f89e249602f1e74b12c4f414fc /src/screen_play.c
parent32f329d4efcbc8a1ce16af51e35392b1b6aa1326 (diff)
downloadmpd-31283ca1beceb15145360674da4690081bd30d97.tar.gz
mpd-31283ca1beceb15145360674da4690081bd30d97.tar.xz
mpd-31283ca1beceb15145360674da4690081bd30d97.zip
screen: simplified CMD_SCREEN_UPDATE handlers
Since screen.c has default code for CMD_SCREEN_UPDATE, return 0 from the command handlers and let screen.c do the rest.
Diffstat (limited to 'src/screen_play.c')
-rw-r--r--src/screen_play.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index bea8e1253..625e953d4 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -471,10 +471,9 @@ play_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
handle_add_to_playlist(screen, c);
return 1;
case CMD_SCREEN_UPDATE:
- screen->painted = 0;
- lw->clear = 1;
center_playing_item(c);
- return 1;
+ return 0;
+
case CMD_LIST_MOVE_UP:
mpdclient_cmd_move(c, lw->selected, lw->selected-1);
return 1;