aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-02 19:00:28 +0200
committerMax Kellermann <max@duempel.org>2008-10-02 19:00:28 +0200
commita3f209be26e588397f7b96de73fb86625c6d2bb8 (patch)
tree32d64785eff9456e2ad3b21f6c03822a444e076f /src/screen.c
parent45ff31548dc68c27e1af6fdf37945de97579f5f9 (diff)
downloadmpd-a3f209be26e588397f7b96de73fb86625c6d2bb8.tar.gz
mpd-a3f209be26e588397f7b96de73fb86625c6d2bb8.tar.xz
mpd-a3f209be26e588397f7b96de73fb86625c6d2bb8.zip
moved macros from ncmpc.h to main.c and screen.c
Moved constants which are only used in one source file. Remove several unused macros.
Diffstat (limited to '')
-rw-r--r--src/screen.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index ac4a63ee1..5239b82d8 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -22,7 +22,6 @@
#include "screen_list.h"
#include "screen_utils.h"
#include "config.h"
-#include "ncmpc.h"
#include "i18n.h"
#include "support.h"
#include "mpdclient.h"
@@ -40,6 +39,16 @@
#include <time.h>
#include <locale.h>
+/** welcome message time [s] */
+static const unsigned SCREEN_WELCOME_TIME = 10;
+
+/** status message time [s] */
+static const unsigned SCREEN_STATUS_MESSAGE_TIME = 3;
+
+/* minumum window size */
+static const int SCREEN_MIN_COLS = 14;
+static const int SCREEN_MIN_ROWS = 5;
+
/* screens */
static gboolean welcome = TRUE;