Skip to content

Commit b8b3eb1

Browse files
at this point I could have rewritten convert_alpha
1 parent f0bd2a7 commit b8b3eb1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/draw_test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,10 +1070,12 @@ 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+
10731076
for depth in (8, 16, 24, 32):
1074-
for flags in (0, SRCALPHA):
1075-
surface = pygame.Surface(size, flags, depth=depth)
1076-
surfaces.append(surface)
1077+
surface = pygame.Surface(size, depth=depth)
1078+
surfaces.append(surface)
10771079
return surfaces
10781080

10791081
@staticmethod

0 commit comments

Comments
 (0)