diff --git a/screen.c b/screen.c
index aabc6f0334b5b53e3a2fd46cef6730f832ec9e20..efd93d1fec9e76f903b3229626bb3aa9a9c700f7 100644 (file)
--- a/screen.c
+++ b/screen.c
if(clear)
{
- wclear(w);
+ wmove(w, 0, 0);
+ wclrtoeol(w);
}
if(prev_volume!=volume || clear)
}
mvwaddstr(w, 0, screen->top_window.cols-12, buf);
+#if 1
if( options.enable_colors )
wattron(w, LINE_COLORS);
mvwhline(w, 1, 0, ACS_HLINE, screen->top_window.cols);
if( options.enable_colors )
wattroff(w, LINE_COLORS);
+#else
+ if( options.enable_colors )
+ wattron(w, LINE_COLORS);
+
+ mvwhline(w, 1, 0, ACS_HLINE, screen->top_window.cols);
+ wmove(w,1,screen->top_window.cols-6);
+ waddstr(w, "[rzx]");
+
+ if( options.enable_colors )
+ wattroff(w, LINE_COLORS);
+
+#endif
wnoutrefresh(w);
}
double p;
int width;
- if( c->status==NULL || !IS_PLAYING(c->status->state) )
+ if( c->status==NULL || IS_STOPPED(c->status->state) )
{
mvwhline(screen->progress_window.w, 0, 0, ACS_HLINE,
screen->progress_window.cols);
screen->buf_size = screen->cols;
screen->findbuf = NULL;
screen->painted = 0;
+ screen->input_timestamp = time(NULL);
/* create top window */
screen->top_window.rows = 2;
int n;
screen_mode_t new_mode = screen->mode;
+ screen->input_timestamp = time(NULL);
switch(screen->mode)
{
case SCREEN_PLAY_WINDOW:
screen_status_printf("Find mode: %s",
options.find_wrap ? "Wrapped" : "Normal");
break;
+ case CMD_TOGGLE_AUTOCENTER:
+ options.auto_center = !options.auto_center;
+ screen_status_printf("Auto center mode: %s",
+ options.auto_center ? "On" : "Off");
+ break;
case CMD_SCREEN_PREVIOUS:
if( screen->mode > SCREEN_PLAY_WINDOW )
new_mode = screen->mode - 1;