From: ewt Date: Tue, 26 Mar 1996 04:13:09 +0000 (+0000) Subject: doesn't draw itself it top == -1 X-Git-Tag: 0-1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9439688549b3a74ce33ce26c9dcf2073c2fdb41b;p=thirdparty%2Fnewt.git doesn't draw itself it top == -1 --- diff --git a/checkbox.c b/checkbox.c index 4bc1ff7..40dce35 100644 --- a/checkbox.c +++ b/checkbox.c @@ -91,6 +91,8 @@ static void cbDraw(newtComponent c) { static void cbDrawIt(newtComponent c, int active) { struct checkbox * cb = c->data; + if (c->top == -1) return; + SLsmg_set_color(COLORSET_CHECKBOX); newtGotorc(c->top, c->left); diff --git a/entry.c b/entry.c index 7ab4b4d..799f526 100644 --- a/entry.c +++ b/entry.c @@ -72,6 +72,8 @@ static void entryDraw(newtComponent co) { int i; char * chptr; int len; + + if (co->top == -1) return; if (en->flags & NEWT_ENTRY_HIDDEN) { newtGotorc(co->top, co->left);