From bb06fd24d664a8869e27503cfaba3d9d0f4a2b03 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Tue, 2 Jan 2018 00:46:23 -0500 Subject: [PATCH] Allow for opaque window structs. To Do: getattrs() isn't really standard, either (although shared with ncurses). --- demos/tui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/tui.c b/demos/tui.c index d25e2025..6961aa48 100644 --- a/demos/tui.c +++ b/demos/tui.c @@ -640,7 +640,7 @@ int weditstr(WINDOW *win, char *buf, int field) getbegyx(win, begy, begx); wedit = subwin(win, 1, field, begy + cury, begx + curx); - oldattr = wedit->_attrs; + oldattr = getattrs(wedit); colorbox(wedit, EDITBOXCOLOR, 0); keypad(wedit, TRUE);