diff --git a/src/screen_help.c b/src/screen_help.c
index da2d3e9773465ecc820429a5056cac5fc73b9951..6ce641b130fefc2d767d72f6e25952f744c0fced 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
* Project homepage: http://musicpd.org
*
* This program is free software; you can redistribute it and/or modify
}
static void
-help_init(WINDOW *w, int cols, int rows)
+help_init(WINDOW *w, unsigned cols, unsigned rows)
{
lw = list_window_init(w, cols, rows);
lw->hide_cursor = true;
}
static void
-help_resize(int cols, int rows)
+help_resize(unsigned cols, unsigned rows)
{
list_window_resize(lw, cols, rows);
}
screen_help_paint_callback(WINDOW *w, unsigned i,
unsigned y, unsigned width,
gcc_unused bool selected,
- gcc_unused void *data)
+ gcc_unused const void *data)
{
const struct help_text_row *row = &help_text[i];
{
if (list_window_scroll_cmd(lw, cmd)) {
help_paint();
- wrefresh(lw->w);
return true;
}
/* center the row */
list_window_center(lw, lw->selected);
help_paint();
- wrefresh(lw->w);
return true;
}