This commit is contained in:
dherrada 2021-05-19 14:38:40 -04:00
parent 58b28d394b
commit b9f066e5b9
2 changed files with 2 additions and 4 deletions

View file

@ -37,8 +37,7 @@ WIDTH = IMG.size[0]
HEIGHT = IMG.size[1]
print("%dx%d pixels" % IMG.size)
if HEIGHT > NUMPIXELS:
HEIGHT = NUMPIXELS
HEIGHT = min(HEIGHT, NUMPIXELS)
# Calculate gamma correction table, makes mid-range colors look 'right':
GAMMA = bytearray(256)

View file

@ -41,8 +41,7 @@ WIDTH = IMG.size[0]
HEIGHT = IMG.size[1]
print("%dx%d pixels" % IMG.size)
if HEIGHT > NUMPIXELS:
HEIGHT = NUMPIXELS
HEIGHT = min(HEIGHT, NUMPIXELS)
# Calculate gamma correction table, makes mid-range colors look 'right':
GAMMA = bytearray(256)