pdcurses: don't truncate curses window width
The curses windows were being capped at 110 columns inappropriately. Use the full width of the console.
This commit is contained in:
@@ -2638,6 +2638,18 @@ void nethack_enter_consoletty(void)
|
||||
nhUse(apisuccess);
|
||||
}
|
||||
|
||||
int
|
||||
get_console_width(void)
|
||||
{
|
||||
return console.width;
|
||||
}
|
||||
|
||||
int
|
||||
get_console_height(void)
|
||||
{
|
||||
return console.height;
|
||||
}
|
||||
|
||||
RESTORE_WARNING_CONDEXPR_IS_CONSTANT
|
||||
|
||||
#endif /* TTY_GRAPHICS */
|
||||
|
||||
Reference in New Issue
Block a user