X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2Fwresize.c;h=5eb6a30482f52a20d3d0c787f69fd3eccbcfbb79;hp=30718b8878fd660766b5c90863fd661d240421bf;hb=63d26709472433a4660c88461162252bf0e5fde8;hpb=d21ad44bdac29dcfbd1cf10a1918a42c43215b3d diff --git a/ncurses/base/wresize.c b/ncurses/base/wresize.c index 30718b88..5eb6a304 100644 --- a/ncurses/base/wresize.c +++ b/ncurses/base/wresize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2019,2020 Thomas E. Dickey * + * Copyright 2019-2020,2021 Thomas E. Dickey * * Copyright 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -34,7 +34,7 @@ #include -MODULE_ID("$Id: wresize.c,v 1.41 2020/04/18 21:01:00 tom Exp $") +MODULE_ID("$Id: wresize.c,v 1.42 2021/10/23 18:54:16 tom Exp $") static int cleanup_lines(struct ldat *data, int length) @@ -135,7 +135,7 @@ wresize(WINDOW *win, int ToLines, int ToCols) && ToCols == size_x) returnCode(OK); - if ((win->_flags & _SUBWIN)) { + if (IS_SUBWIN(win)) { /* * Check if the new limits will fit into the parent window's size. If * not, do not resize. We could adjust the location of the subwindow, @@ -169,7 +169,7 @@ wresize(WINDOW *win, int ToLines, int ToCols) int end = ToCols; NCURSES_CH_T *s; - if (!(win->_flags & _SUBWIN)) { + if (!IS_SUBWIN(win)) { if (row <= size_y) { if (ToCols != size_x) { s = typeMalloc(NCURSES_CH_T, (unsigned) ToCols + 1);