From: mlichvar Date: Wed, 11 Apr 2007 14:31:40 +0000 (+0000) Subject: - fix cursor positioning when setting entry or checkbox flags X-Git-Tag: r0-52-7~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28de1915b57638568c3d2917c2350287844d8f3c;p=thirdparty%2Fnewt.git - fix cursor positioning when setting entry or checkbox flags --- diff --git a/newt.c b/newt.c index 544558d..8b20dab 100644 --- a/newt.c +++ b/newt.c @@ -778,8 +778,13 @@ void newtGetWindowPos(int * x, int * y) { } void newtGetrc(int * row, int * col) { - *row = cursorRow; - *col = cursorCol; + *row = cursorRow; + *col = cursorCol; + + if (currentWindow) { + *row -= currentWindow->top; + *col -= currentWindow->left; + } } void newtGotorc(int newRow, int newCol) { diff --git a/newt.spec b/newt.spec index 154ad10..341ca94 100644 --- a/newt.spec +++ b/newt.spec @@ -88,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.a %changelog +- fix cursor positioning when setting entry or checkbox flags - fix entry scrolling (#234829) - fix multibyte character handling in entry