aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 14:28:49 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 14:28:49 +0200
commit66f34ee6b418742d44f38ec3bdec5a8ea541bfcc (patch)
tree825976289312f2e716710d613ce1fd8bdc54367d /src/main.c
parent0ae851aa39de5dfdf6b97c3e774aa322c820f410 (diff)
downloadmpd-66f34ee6b418742d44f38ec3bdec5a8ea541bfcc.tar.gz
mpd-66f34ee6b418742d44f38ec3bdec5a8ea541bfcc.tar.xz
mpd-66f34ee6b418742d44f38ec3bdec5a8ea541bfcc.zip
screen: removed "painted" flag
Repaint immediately instead of setting "painted=0".
Diffstat (limited to '')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 3a6243c37..983923437 100644
--- a/src/main.c
+++ b/src/main.c
@@ -143,7 +143,7 @@ catch_sigcont(mpd_unused int sig)
reset_prog_mode(); /* restore tty modes */
refresh();
#endif
- screen_resize();
+ screen_resize(mpd);
}
void
@@ -165,7 +165,7 @@ timer_sigwinch(mpd_unused gpointer data)
endwin();
refresh();
- screen_resize();
+ screen_resize(mpd);
return FALSE;
}
@@ -442,6 +442,8 @@ main(int argc, const char *argv[])
g_timeout_add(10000, timer_check_key_bindings, NULL);
idle_source_id = g_timeout_add(idle_interval, timer_idle, NULL);
+ screen_paint(mpd);
+
g_main_loop_run(main_loop);
/* cleanup */