From a454dc7194058193eb3f245182b0948a3d6e2010 Mon Sep 17 00:00:00 2001 From: rocky Date: Wed, 5 Apr 2006 04:11:33 +0000 Subject: [PATCH] Tidy up a little. --- src/cdda-player.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/cdda-player.c b/src/cdda-player.c index c016eb5a..4746e0f5 100644 --- a/src/cdda-player.c +++ b/src/cdda-player.c @@ -1,5 +1,5 @@ /* - $Id: cdda-player.c,v 1.43 2006/04/05 03:52:21 rocky Exp $ + $Id: cdda-player.c,v 1.44 2006/04/05 04:11:33 rocky Exp $ Copyright (C) 2005, 2006 Rocky Bernstein @@ -213,17 +213,6 @@ tty_raw() refresh(); } -/* Called when window is resized. */ -static void -sigwinch() -{ - endwin(); - initscr(); - getmaxyx(stdscr, LINE_LAST, COLS_LAST); - LINE_ACTION = LINE_LAST - 1; - action(NULL); -} - /*! Curses window finalization. */ static void tty_restore() @@ -232,6 +221,15 @@ tty_restore() endwin(); } +/* Called when window is resized. */ +static void +sigwinch() +{ + tty_restore(); + tty_raw(); + action(NULL); +} + /* Signal handler - Ctrl-C and others. */ static void ctrlc(int signal) @@ -853,7 +851,7 @@ usage(char *prog) "way on a spare console and forget about it...\n" "\n" "(c) 1997,98 Gerd Knorr \n" - "(c) 2005 Rocky Bernstein \n" + "(c) 2005, 2006 Rocky Bernstein \n" , prog, prog); }