Skip to content

Commit

Permalink
shorten change
Browse files Browse the repository at this point in the history
  • Loading branch information
hzheng40 committed May 3, 2024
1 parent 1b90aea commit 86a4b4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions f1tenth_gym/envs/rendering/rendering_pygame.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ def render(self) -> Optional[np.ndarray]:
text=f"FPS: {self.clock.get_fps():.2f}", display=self.canvas
)

self.window.blit(self.canvas, self.canvas.get_rect())
self.window.blit(pygame.transform.flip(self.canvas, False, True), (0, 0))
self.window.blit(pygame.transform.flip(self.canvas, False, True), self.canvas.get_rect())

pygame.event.pump()
pygame.display.update()
Expand Down

0 comments on commit 86a4b4d

Please sign in to comment.