From 2536b6f437ace1d5e2ed80881adee81d5386f696 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 29 Nov 2008 14:07:21 +0000 Subject: curses tweaks --- src/dedicated/console.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dedicated/console.cc b/src/dedicated/console.cc index 31b35ff..3790d93 100644 --- a/src/dedicated/console.cc +++ b/src/dedicated/console.cc @@ -207,7 +207,7 @@ void Console::draw_status() int seconds = (int) floorf( core::game()->time() - (float) minutes* 60.0f); std::stringstream status; status << "time " << std::setfill(' ') << std::setw(3) << minutes << ":" << std::setfill('0') << std::setw(2) << seconds; - mvaddnstr(0, 2, status.str().c_str(), status.str().size()); + mvaddnstr(0, 1, status.str().c_str(), status.str().size()); } } void Console::draw_text() @@ -348,9 +348,13 @@ void Console::draw() if (!console_initialized) return; +#ifdef _WIN32 console_width = stdwin->_maxx -1; console_height = stdwin->_maxy -1; - +#else + console_width = stdwin->_maxx; + console_height = stdwin->_maxy; +#endif draw_background(); draw_status(); draw_text(); -- cgit v1.2.3