mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-07-09 02:26:23 +00:00
Doesn't work.
This commit is contained in:
@@ -415,9 +415,6 @@ int PDC_scr_open(void)
|
||||
|
||||
pdc_quick_edit = old_console_mode & 0x0040;
|
||||
|
||||
SP->lines = (str = getenv("LINES")) ? atoi(str) : PDC_get_rows();
|
||||
SP->cols = (str = getenv("COLS")) ? atoi(str) : PDC_get_columns();
|
||||
|
||||
SP->mouse_wait = PDC_CLICK_PERIOD;
|
||||
SP->audible = TRUE;
|
||||
|
||||
@@ -425,22 +422,6 @@ int PDC_scr_open(void)
|
||||
if (pdc_ansi)
|
||||
SP->termattrs |= A_UNDERLINE | A_ITALIC;
|
||||
|
||||
if (SP->lines < 2 || SP->lines > csbi.dwMaximumWindowSize.Y)
|
||||
{
|
||||
fprintf(stderr, "LINES value must be >= 2 and <= %d: got %d\n",
|
||||
csbi.dwMaximumWindowSize.Y, SP->lines);
|
||||
|
||||
return ERR;
|
||||
}
|
||||
|
||||
if (SP->cols < 2 || SP->cols > csbi.dwMaximumWindowSize.X)
|
||||
{
|
||||
fprintf(stderr, "COLS value must be >= 2 and <= %d: got %d\n",
|
||||
csbi.dwMaximumWindowSize.X, SP->cols);
|
||||
|
||||
return ERR;
|
||||
}
|
||||
|
||||
SP->orig_fore = csbi.wAttributes & 0x0f;
|
||||
SP->orig_back = (csbi.wAttributes & 0xf0) >> 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user