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.
This commit is contained in:
Nils Rokita 2018-11-27 15:46:56 +01:00
parent 3502fedf02
commit 576713f13b

View File

@ -102,7 +102,7 @@ class Screen(Thread):
for row in range(3, self.scr_h - 3): for row in range(3, self.scr_h - 3):
icao = None icao = None
idx = row + self.offset idx = row + self.offset - 3
if idx > len(icaos) - 1: if idx > len(icaos) - 1:
line = ' '*(self.scr_w-2) line = ' '*(self.scr_w-2)