summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0469331)
raw | patch | inline | side by side (parent: 0469331)
author | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 16:43:50 +0000 (18:43 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 16:43:50 +0000 (18:43 +0200) |
play_update() is the only update() implementation left, and it does
not use the screen pointer. Remove it from the method signature.
not use the screen pointer. Remove it from the method signature.
src/screen.c | patch | blob | history | |
src/screen.h | patch | blob | history | |
src/screen_play.c | patch | blob | history |
diff --git a/src/screen.c b/src/screen.c
index 785807c2b7e6e87bfc759c6efff808df1d66c428..e391a9d6295968f39f6e51c3ddbf1125c970134a 100644 (file)
--- a/src/screen.c
+++ b/src/screen.c
/* update the main window */
if (mode_fn->update != NULL)
- mode_fn->update(&screen, c);
+ mode_fn->update(c);
/* update progress window */
paint_progress_window(c);
diff --git a/src/screen.h b/src/screen.h
index 8c0a947a090be8d4a9c8d8ca2b29c7d252431013..3ba5541fb8896707d0d19190921241aa5a1b5637 100644 (file)
--- a/src/screen.h
+++ b/src/screen.h
typedef void (*screen_close_fn_t)(void);
typedef void (*screen_resize_fn_t)(int cols, int rows);
typedef void (*screen_paint_fn_t)(mpdclient_t *c);
-typedef void (*screen_update_fn_t)(struct screen *screen, mpdclient_t *c);
+typedef void (*screen_update_fn_t)(mpdclient_t *c);
typedef int (*screen_cmd_fn_t)(struct screen *scr, mpdclient_t *c, command_t cmd);
typedef const char *(*screen_title_fn_t)(char *s, size_t size);
diff --git a/src/screen_play.c b/src/screen_play.c
index 757ead3a0ed46704127bfbe3e27770cd0a356352..8258e18aea96044a60833edb1ec4b9d3609d6a6b 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
static gboolean install_cb = TRUE;
assert(timer_hide_cursor_id == 0);
- if (options.hide_cursor > 0)
+ if (options.hide_cursor > 0) {
+ lw->flags &= ~LW_HIDE_CURSOR;
timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000,
timer_hide_cursor, c);
+ }
if (install_cb) {
mpdclient_install_playlist_callback(c, playlist_changed_callback);
}
static void
-play_update(mpd_unused screen_t *screen, mpdclient_t *c)
+play_update(mpdclient_t *c)
{
/* center the cursor */
if (options.auto_center) {