From 171cfd400cd89b468f03ca583e98c53f08b60e6b Mon Sep 17 00:00:00 2001 From: Graham Northup Date: Thu, 6 Sep 2018 03:53:41 -0400 Subject: Client now displays drift rate --- client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.py b/client.py index 9442f44..bfe98d5 100644 --- a/client.py +++ b/client.py @@ -130,6 +130,7 @@ def pygame_notes(): bgrwin.set_colorkey((0, 0, 0)) clock = pygame.time.Clock() + font = pygame.font.SysFont(pygame.font.get_default_font(), 24) while True: if options.no_colback: @@ -180,8 +181,13 @@ def pygame_notes(): # break #if len(pts) > 2: # pygame.gfxdraw.aapolygon(disp, pts, [0, 255, 0]) + disp.blit(bgrwin, (0, 0)) disp.blit(sampwin, (BGR_WIDTH, 0)) + if QUEUED_PCM: + tsurf = font.render('%08.6f'%(DRIFT_FACTOR,), True, (255, 255, 255), (0, 0, 0)) + disp.fill((0, 0, 0), tsurf.get_rect()) + disp.blit(tsurf, (0, 0)) pygame.display.flip() for ev in pygame.event.get(): -- cgit v1.2.3-70-g09d2