From: mlichvar Date: Tue, 30 Jan 2007 14:03:18 +0000 (+0000) Subject: - fix cursor position X-Git-Tag: r0-52-5~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9b126052671868aa5d3a9f496bca5e9bc648ba7;p=thirdparty%2Fnewt.git - fix cursor position --- diff --git a/checkbox.c b/checkbox.c index ad30717..3ff0dec 100644 --- a/checkbox.c +++ b/checkbox.c @@ -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) { diff --git a/checkboxtree.c b/checkboxtree.c index 8734951..05f11e5 100644 --- a/checkboxtree.c +++ b/checkboxtree.c @@ -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) {