You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/monsterz/files/monsterz-0.7.1-blit.patch

33 lines
1.3 KiB

--- monsterz.py
+++ monsterz.py
@@ -829,10 +829,10 @@
pass
else:
for x in range(4):
- for y, p in enumerate(alpha[x]):
- alpha[x][y] = p * x / 4
- for y, p in enumerate(alpha[406 - x - 1]):
- alpha[406 - x - 1][y] = p * x / 4
+ for y in range(len(alpha[x])):
+ alpha[x][y] = alpha[x][y] * x / 4
+ for y in range(len(alpha[406 - x - 1])):
+ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 4
for col in alpha:
l = len(col)
for y in range(4):
@@ -1287,10 +1287,10 @@
pass
else:
for x in range(10):
- for y, p in enumerate(alpha[x]):
- alpha[x][y] = p * x / 12
- for y, p in enumerate(alpha[406 - x - 1]):
- alpha[406 - x - 1][y] = p * x / 12
+ for y in range(len(alpha[x])):
+ alpha[x][y] = alpha[x][y] * x / 12
+ for y in range(len(alpha[406 - x - 1])):
+ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 12
del alpha
scroll.unlock()
system.blit(scroll, (13, 437))