pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

NaNs completely deadlock draw.line

Open Starbuck5 opened this issue 6 months ago • 2 comments
trafficstars

import math
import pygame

pygame.init()

surf = pygame.Surface((500,500))

print("Starting")

pygame.draw.line(surf, "black", (0, 0), (math.nan, 100))

print("Done!")

This test script makes pygame-ce completely unresponsive, it can't even be CTRL-Ced.

I haven't looked into other draw functions.

Starbuck5 avatar Apr 26 '25 07:04 Starbuck5