aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-27 23:14:00 +0000
committerKalle Wallin <kaw@linux.se>2004-03-27 23:14:00 +0000
commit77992b5b09fb048809922d01a8a25885d2ec2685 (patch)
treed11b1920354f2f3581f3b8565cda0254047b6a2d /screen.c
parenta9007c69af2d87006f22e9bdf5da8db9401b2379 (diff)
downloadmpd-77992b5b09fb048809922d01a8a25885d2ec2685.tar.gz
mpd-77992b5b09fb048809922d01a8a25885d2ec2685.tar.xz
mpd-77992b5b09fb048809922d01a8a25885d2ec2685.zip
Moved random,repeat notification from main.c
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@520 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index 174578432..7e3e51d7f 100644
--- a/screen.c
+++ b/screen.c
@@ -407,9 +407,27 @@ screen_paint(mpd_client_t *c)
void
screen_update(mpd_client_t *c)
{
+ static int repeat = -1;
+ static int random = -1;
+
if( !screen->painted )
return screen_paint(c);
+ if( repeat<0 )
+ {
+ repeat = c->status->repeat;
+ random = c->status->random;
+ }
+ if( repeat != c->status->repeat )
+ screen_status_printf("Repeat is %s",
+ c->status->repeat ? "On" : "Off");
+ if( random != c->status->random )
+ screen_status_printf("Random is %s",
+ c->status->random ? "On" : "Off");
+
+ repeat = c->status->repeat;
+ random = c->status->random;
+
switch(screen->mode)
{
case SCREEN_PLAY_WINDOW: