mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
[console] Fix a build failure without ncurses
It seems that I'd gotten some wires crossed when submitting the issue in that it was the server console, not qwaq-curses, but fixes #54
This commit is contained in:
parent
25e27bba64
commit
23b041c2c0
1 changed files with 2 additions and 4 deletions
|
@ -146,11 +146,7 @@ enum {
|
||||||
sv_cursor = 8,
|
sv_cursor = 8,
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef HAVE_NCURSES
|
|
||||||
static int use_curses = 1;
|
static int use_curses = 1;
|
||||||
#else
|
|
||||||
static int use_curses = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static view_t sv_view;
|
static view_t sv_view;
|
||||||
static view_t output;
|
static view_t output;
|
||||||
|
@ -855,12 +851,14 @@ C_ProcessInput (void)
|
||||||
static void
|
static void
|
||||||
C_DrawConsole (void)
|
C_DrawConsole (void)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_NCURSES
|
||||||
// only the status bar is drawn because the inputline and output views
|
// only the status bar is drawn because the inputline and output views
|
||||||
// take care of themselves
|
// take care of themselves
|
||||||
if (use_curses) {
|
if (use_curses) {
|
||||||
draw_status (status);
|
draw_status (status);
|
||||||
sv_refresh_windows ();
|
sv_refresh_windows ();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue