From 56a9fd25975a05a3db8679cb5a3ca03b14b97472 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 25 Oct 2026 18:32:33 +0100 Subject: Fixed an ncurses build issue. --- src/dedicated/console.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3