summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryounix <web2p10@wemelug.de>2010-07-19 23:57:44 +0200
committeryounix <web2p10@wemelug.de>2010-07-19 23:57:44 +0200
commitb3d100ded7c6de3870bd454982227b47d650f7a8 (patch)
tree79cc64466d049c41baf3b643f5fad955bee43cb3 /src
parent0b5e6440403c3f5e93746f4c1987491389aad625 (diff)
downloadpa-sink-ctl-b3d100ded7c6de3870bd454982227b47d650f7a8.tar.gz
pa-sink-ctl-b3d100ded7c6de3870bd454982227b47d650f7a8.tar.bz2
pa-sink-ctl-b3d100ded7c6de3870bd454982227b47d650f7a8.zip
interface: intern box is now in fullwindowsize
Diffstat (limited to 'src')
-rw-r--r--src/interface.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/interface.c b/src/interface.c
index d45bff7..037a8ba 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -11,15 +11,11 @@
#include "pa-sink-ctl.h"
#define VOLUME_BAR_LEN 50
-#define WIDTH 80
-#define HEIGHT 10
// ncurses
WINDOW *menu_win;
int chooser_sink;
int chooser_input;
-int startx;
-int starty;
int selected_index;
@@ -31,14 +27,13 @@ void interface_init(void)
{
chooser_sink = 0;
chooser_input = -1;
-
+
initscr();
clear();
noecho();
cbreak(); /* Line buffering disabled. pass on everything */
- startx = (80 - WIDTH) / 2;
- starty = (24 - HEIGHT) / 2;
- menu_win = newwin(HEIGHT, WIDTH, starty, startx);
+
+ menu_win = newwin(0, 0, 0, 0);
nodelay(menu_win, TRUE); /* important! make wgetch non-blocking */
keypad(menu_win, TRUE);
curs_set(0); /* hide cursor */