more Windows curses size tinkering

This commit is contained in:
nhmall
2026-05-16 12:15:20 -04:00
parent b2458e679a
commit d78a875110
5 changed files with 31 additions and 44 deletions
+13
View File
@@ -1361,6 +1361,19 @@ nh_compose_ascii_screenshot(void)
return retval;
}
int
get_approx_display_cols(void)
{
return GetSystemMetrics(SM_CXSCREEN) / 8;
}
int
get_approx_display_rows(void)
{
return GetSystemMetrics(SM_CYSCREEN) / 12;
}
#ifdef ENHANCED_SYMBOLS
// returns malloc() created pointer - callee assumes the ownership
static WCHAR *