Skip to content

Commit 34c1e0c

Browse files
I give up
1 parent b8b3eb1 commit 34c1e0c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/draw_test.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,12 +1070,11 @@ def _create_surfaces():
10701070
# Create some surfaces with different sizes, depths, and flags.
10711071
surfaces = []
10721072
for size in ((49, 49), (50, 50)):
1073-
surface = pygame.Surface(size, SRCALPHA)
1074-
surfaces.append(surface)
1075-
10761073
for depth in (8, 16, 24, 32):
1077-
surface = pygame.Surface(size, depth=depth)
1078-
surfaces.append(surface)
1074+
for flags in (0, SRCALPHA):
1075+
surface = pygame.display.set_mode(size, flags)
1076+
surfaces.append(surface)
1077+
surfaces.append(surface.convert_alpha())
10791078
return surfaces
10801079

10811080
@staticmethod

0 commit comments

Comments
 (0)