]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
doesn't draw itself it top == -1
authorewt <ewt>
Tue, 26 Mar 1996 04:13:09 +0000 (04:13 +0000)
committerewt <ewt>
Tue, 26 Mar 1996 04:13:09 +0000 (04:13 +0000)
checkbox.c
entry.c

index 4bc1ff7de1b5031b41c307b33433652d79d82438..40dce356514211cab5101d51e7c238f401663565 100644 (file)
@@ -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 7ab4b4df3313f9f2ba9933ec86ec9850f58759d7..799f526a47154b9ea019ef8140ea25aeadff34a9 100644 (file)
--- 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);