From: ewt Date: Sat, 1 Aug 1998 15:43:55 +0000 (+0000) Subject: row/col handling was broken when drawing root text X-Git-Tag: r0-30~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39280c3afa58139639cfeb9723184fde39c27947;p=thirdparty%2Fnewt.git row/col handling was broken when drawing root text --- diff --git a/newt.c b/newt.c index 2ba468f..2e2085d 100644 --- a/newt.c +++ b/newt.c @@ -588,7 +588,7 @@ void newtPopHelpLine(void) { newtRedrawHelpLine(); } -void newtDrawRootText(int row, int col, const char * text) { +void newtDrawRootText(int col, int row, const char * text) { SLsmg_set_color(NEWT_COLORSET_ROOTTEXT); if (col < 0) { @@ -596,7 +596,7 @@ void newtDrawRootText(int row, int col, const char * text) { } if (row < 0) { - col = SLtt_Screen_Cols + col; + row = SLtt_Screen_Rows + row; } SLsmg_gotorc(row, col);