]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
row/col handling was broken when drawing root text
authorewt <ewt>
Sat, 1 Aug 1998 15:43:55 +0000 (15:43 +0000)
committerewt <ewt>
Sat, 1 Aug 1998 15:43:55 +0000 (15:43 +0000)
newt.c

diff --git a/newt.c b/newt.c
index 2ba468fb0a0cc26ed265a1e6bdb7664feb7b0c01..2e2085dd4ad659f2a437d5de2bd848c3adf46a29 100644 (file)
--- 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);