From 576713f13bf611f42fb495ea6af4f669b2585b0b Mon Sep 17 00:00:00 2001 From: Nils Rokita <0rokita@informatik.uni-hamburg.de> Date: Tue, 27 Nov 2018 15:46:56 +0100 Subject: [PATCH] streamer.screen: fix missing flights in view the row is countin from 3 to the window hight, but the idx ist used as index into the icaos list beginning at 0. the offset is 0 for the first page. This results in the first 3 flights not shown. --- pyModeS/streamer/screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyModeS/streamer/screen.py b/pyModeS/streamer/screen.py index 930d9e8..ff8264a 100644 --- a/pyModeS/streamer/screen.py +++ b/pyModeS/streamer/screen.py @@ -102,7 +102,7 @@ class Screen(Thread): for row in range(3, self.scr_h - 3): icao = None - idx = row + self.offset + idx = row + self.offset - 3 if idx > len(icaos) - 1: line = ' '*(self.scr_w-2)