Explorar el Código

Increase display accuracy

Graham Northup hace 7 años
padre
commit
3730b7720a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client.py

+ 1 - 1
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()