Added display initialization to avoid posible noise

This commit is contained in:
doterop 2020-11-19 19:39:19 +01:00
parent 064760da3a
commit 6c85458b0e
1 changed files with 2 additions and 0 deletions

View File

@ -1081,6 +1081,8 @@ def game_loop(args):
display = pygame.display.set_mode(
(args.width, args.height),
pygame.HWSURFACE | pygame.DOUBLEBUF)
display.fill((0,0,0))
pygame.display.flip()
hud = HUD(args.width, args.height)
world = World(client.get_world(), hud, args)