diff options
| author | Stijn Buys <ingar@telenet.be> | 2026-10-25 18:32:33 +0100 |
|---|---|---|
| committer | Stijn Buys <ingar@telenet.be> | 2026-10-25 18:32:33 +0100 |
| commit | 56a9fd25975a05a3db8679cb5a3ca03b14b97472 (patch) | |
| tree | 9e3e2c8cfe193bc17506828838b6dec6fceaba48 /src/dedicated | |
| parent | 9496897065d43498830aff260379fe08e41a0270 (diff) | |
Diffstat (limited to 'src/dedicated')
| -rw-r--r-- | src/dedicated/console.cc | 11 |
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(); |
