From f4f5c676234fe9adbc82cc2baaa37fb211543ca5 Mon Sep 17 00:00:00 2001 From: johnsonm Date: Tue, 19 Aug 2003 20:12:22 +0000 Subject: [PATCH] incorporated listbox cursor location patch (#69903) --- listbox.c | 3 ++- newt.spec | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/listbox.c b/listbox.c index a05f6b3..a895737 100644 --- a/listbox.c +++ b/listbox.c @@ -530,7 +530,8 @@ static void listboxDraw(newtComponent co) SLsmg_write_nstring(item->text, li->curWidth); } - newtGotorc(co->top + (li->currItem - li->startShowItem) + 1, co->left + 1); + newtGotorc(co->top + (li->currItem - li->startShowItem) + li->bdyAdjust, + co->left + li->bdxAdjust); } static struct eventResult listboxEvent(newtComponent co, struct event ev) { diff --git a/newt.spec b/newt.spec index aca314a..cc3e356 100644 --- a/newt.spec +++ b/newt.spec @@ -2,7 +2,7 @@ Summary: A development library for text mode user interfaces. Name: newt -%define version 0.51.4 +%define version 0.51.5 Version: %{version} Release: 1 License: LGPL @@ -83,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.so %changelog +* Tue Aug 19 2003 Michael K. Johnson +- incorporated listbox cursor location patch (#69903) + * Wed Feb 5 2003 Matt Wilson 0.51.4-1 - fixed help line drawing in UTF-8 (#81718) - calculate the width of text in entries using wstrlen -- 2.47.2