Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-29 14:07:21 +0000
committerStijn Buys <ingar@osirion.org>2008-11-29 14:07:21 +0000
commit2536b6f437ace1d5e2ed80881adee81d5386f696 (patch)
tree5c2905752fe63b427a4978bb7698a8c800898433 /src/dedicated
parent46fd24dc4179c6dfa1424fd6433d5a30c8ce46dc (diff)
curses tweaks
Diffstat (limited to 'src/dedicated')
-rw-r--r--src/dedicated/console.cc8
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();