Code

screen_interface: make cols/rows unsigned
[ncmpc.git] / src / screen_lyrics.c
index d6d1a6c3cf4c4ad64eedb420f06a70975b33c156..0bce7c4c54bdd702afcbc74a435c37f546c34824 100644 (file)
@@ -1,5 +1,5 @@
 /* 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
@@ -269,13 +269,13 @@ screen_lyrics_reload(void)
 }
 
 static void
-lyrics_screen_init(WINDOW *w, int cols, int rows)
+lyrics_screen_init(WINDOW *w, unsigned cols, unsigned rows)
 {
        screen_text_init(&text, w, cols, rows);
 }
 
 static void
-lyrics_resize(int cols, int rows)
+lyrics_resize(unsigned cols, unsigned rows)
 {
        screen_text_resize(&text, cols, rows);
 }
@@ -453,7 +453,7 @@ lyrics_cmd(struct mpdclient *c, command_t cmd)
        case CMD_LYRICS_UPDATE:
                if (c->song != NULL) {
                        screen_lyrics_load(c->song);
-                       screen_text_repaint(&text);
+                       screen_text_paint(&text);
                }
                return true;
        case CMD_EDIT: