diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-29 14:07:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-29 14:07:21 +0000 |
commit | 2536b6f437ace1d5e2ed80881adee81d5386f696 (patch) | |
tree | 5c2905752fe63b427a4978bb7698a8c800898433 | |
parent | 46fd24dc4179c6dfa1424fd6433d5a30c8ce46dc (diff) |
curses tweaks
-rw-r--r-- | src/dedicated/console.cc | 8 |
1 files changed, 6 insertions, 2 deletions
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(); |