Remove direct access of ncurses struct

This commit is contained in:
jl777
2019-02-02 08:37:03 -11:00
parent dabceb5d37
commit b319a87bef
2 changed files with 4 additions and 4 deletions

View File

@@ -260,9 +260,9 @@ md_hasclreol()
#if defined(clr_eol)
#ifdef NCURSES_VERSION
if (cur_term == NULL)
return(0);
if (cur_term->type.Strings == NULL)
return(0);
return(0);
//if (cur_term->type.Strings == NULL)
return(0);
#endif
return((clr_eol != NULL) && (*clr_eol != 0));
#elif defined(__PDCURSES__)

View File

@@ -380,7 +380,7 @@ playit(struct rogue_state *rs)
}
if (md_hasclreol())
inv_type = INV_CLEAR;
inv_type = INV_CLEAR;
/*
* parse environment declaration of options