Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/dedicated/console.cc')
-rw-r--r--src/dedicated/console.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/dedicated/console.cc b/src/dedicated/console.cc
index 0e30262..6b3746b 100644
--- a/src/dedicated/console.cc
+++ b/src/dedicated/console.cc
@@ -438,14 +438,13 @@ void Console::draw()
{
if (!console_initialized)
return;
-
+
+ getmaxyx(stdwin, console_height, console_width);
#ifdef _WIN32
- console_width = stdwin->_maxx - 1;
- console_height = stdwin->_maxy - 1;
-#else
- console_width = stdwin->_maxx;
- console_height = stdwin->_maxy;
+ console_width -= 1;
+ console_height -= 1;
#endif
+
draw_background();
draw_status();
draw_text();