Fix a portability issue with md_hasclreol().
Some games' implementation of md_hasclreol() poked around in ncurses internals, which does not work for some ncurses build configuration. Most games did not actually call md_hasclreol(), so it was removed. There is a standard terminfo function which can retrieve the value of the clr_eol capability, so this was used for rogue5.
This commit is contained in:
parent
a489fa501e
commit
338214459d
8 changed files with 4 additions and 86 deletions
|
|
@ -110,20 +110,6 @@ md_init(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
md_hasclreol(void)
|
||||
{
|
||||
#ifdef CE
|
||||
return((CE != NULL) && (*CE != 0));
|
||||
#elif defined (clr_eol)
|
||||
return((clr_eol != NULL) && (*clr_eol != 0));
|
||||
#elif !defined(__PDCURSES__)
|
||||
return(clr_eol != NULL);
|
||||
#else
|
||||
return(TRUE);
|
||||
#endif
|
||||
}
|
||||
|
||||
static int md_standout_mode = 0;
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue