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:
parent
3502fedf02
commit
576713f13b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user