diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 14:31:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 14:31:00 +0200 |
commit | ef040e296e46fcc7620edaf89ffac05e065ec3e3 (patch) | |
tree | 8836cbeb47208a2f949d6f44a093f795f03f37cb /src/screen_help.c | |
parent | 0b2eee9489a8acef3cdee6f6fa0df6d167c53b8d (diff) | |
download | mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.tar.gz mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.tar.xz mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.zip |
screen: export the global variable "screen"
screen_t is a singleton. We do not have to pass it around
everywhere. Export the one global variable.
Diffstat (limited to 'src/screen_help.c')
-rw-r--r-- | src/screen_help.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/screen_help.c b/src/screen_help.c index fbcbf2b82..3b66403d7 100644 --- a/src/screen_help.c +++ b/src/screen_help.c @@ -213,7 +213,7 @@ help_paint(void) } static int -help_cmd(screen_t *screen, mpd_unused mpdclient_t *c, command_t cmd) +help_cmd(mpd_unused mpdclient_t *c, command_t cmd) { if (list_window_scroll_cmd(lw, help_text_rows, cmd)) { list_window_paint(lw, list_callback, NULL); @@ -222,8 +222,7 @@ help_cmd(screen_t *screen, mpd_unused mpdclient_t *c, command_t cmd) } lw->selected = lw->start+lw->rows; - if (screen_find(screen, - lw, help_text_rows, + if (screen_find(lw, help_text_rows, cmd, list_callback, NULL)) { /* center the row */ list_window_center(lw, help_text_rows, lw->selected); |