Browse Source

Remove blank line above log window

Luke Dashjr 12 years ago
parent
commit
a40c386d0c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      miner.c

+ 4 - 4
miner.c

@@ -2768,7 +2768,7 @@ static inline void change_logwinsize(void)
 			statusy = y - 2;
 		else
 			statusy = logstart;
-		logcursor = statusy + 1;
+		logcursor = statusy;
 		mvwin(logwin, logcursor, 0);
 		wresize(statuswin, statusy, x);
 	}
@@ -2793,7 +2793,7 @@ static void check_winsizes(void)
 			statusy = LINES - 2;
 		else
 			statusy = logstart;
-		logcursor = statusy + 1;
+		logcursor = statusy;
 		wresize(statuswin, statusy, x);
 		getmaxyx(mainwin, y, x);
 		y -= logcursor;
@@ -2814,7 +2814,7 @@ static void switch_logsize(void)
 		} else {
 			total_lines = (opt_show_procs ? total_devices : device_line_id_count);
 			logstart = devcursor + total_lines + 1;
-			logcursor = logstart + 1;
+			logcursor = logstart;
 		}
 		unlock_curses();
 	}
@@ -9145,7 +9145,7 @@ int main(int argc, char *argv[])
 
 	devcursor = 8;
 	logstart = devcursor + 1;
-	logcursor = logstart + 1;
+	logcursor = logstart;
 
 	block = calloc(sizeof(struct block), 1);
 	if (unlikely(!block))