aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Northup <grissess@nexusg.org>2018-09-06 04:35:39 -0400
committerGraham Northup <grissess@nexusg.org>2018-09-06 04:35:39 -0400
commit3730b7720ad65865c1731c72df662a2b1f0c7de5 (patch)
tree3a1e6f5317e8c96ae0c0f8e179abd4f60d3e04c3
parentcdb4bba35a69be9f5e245d3c6c81e11818a546c2 (diff)
Increase display accuracy
-rw-r--r--client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.py b/client.py
index 0df7610..22f1161 100644
--- a/client.py
+++ b/client.py
@@ -185,7 +185,7 @@ def pygame_notes():
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))
+ tsurf = font.render('%+011.6g'%(DRIFT_FACTOR - 1,), True, (255, 255, 255), (0, 0, 0))
disp.fill((0, 0, 0), tsurf.get_rect())
disp.blit(tsurf, (0, 0))
pygame.display.flip()