]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- fix cursor position
authormlichvar <mlichvar>
Tue, 30 Jan 2007 14:03:18 +0000 (14:03 +0000)
committermlichvar <mlichvar>
Tue, 30 Jan 2007 14:03:18 +0000 (14:03 +0000)
checkbox.c
checkboxtree.c

index ad30717234f550d712b9bd3371a97b1919e53cdb..3ff0dec4e1b7f4f8cbe392b3f74b4e967f82a62a 100644 (file)
@@ -194,6 +194,7 @@ static void cbDraw(newtComponent c) {
 
     newtGotorc(c->top, c->left + 1);
     SLsmg_write_char(*cb->result);
+    newtGotorc(c->top, c->left + 4);
 }
 
 static void cbDestroy(newtComponent co) {
index 87349515e458572730b8b6bd59acef482934e633..05f11e52fbeabb1b5c332712a8a16c3a56e32e70 100644 (file)
@@ -527,7 +527,8 @@ static void ctDraw(newtComponent co) {
        ct->sb->ops->draw(ct->sb);
     }
 
-    newtGotorc(currRow, co->left + 1);
+    newtGotorc(currRow, co->left + 
+                   (*ct->currItem ? (*ct->currItem)->depth : 0) * 3 + 4);
 }
 
 static void ctDestroy(newtComponent co) {