diff options
-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(); |