Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@telenet.be>2026-10-25 18:32:33 +0100
committerStijn Buys <ingar@telenet.be>2026-10-25 18:32:33 +0100
commit56a9fd25975a05a3db8679cb5a3ca03b14b97472 (patch)
tree9e3e2c8cfe193bc17506828838b6dec6fceaba48 /src/dedicated/console.cc
parent9496897065d43498830aff260379fe08e41a0270 (diff)
Fixed an ncurses build issue.HEADmaster
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();