Fixes Flake 8 issue CircuitPython_Painter

This commit is contained in:
Aaron Dershem 2018-05-14 17:25:54 -04:00
parent c9ad539ab9
commit 4f8a3b1776

View file

@ -75,7 +75,7 @@ try:
databuf = bytearray(bmpWidth * bmpHeight * 4) databuf = bytearray(bmpWidth * bmpHeight * 4)
for row in range(bmpHeight): # For each scanline... for row in range(bmpHeight): # For each scanline...
if (flip): # Bitmap is stored bottom-to-top order (normal BMP) if flip: # Bitmap is stored bottom-to-top order (normal BMP)
pos = bmpImageoffset + (bmpHeight - 1 - row) * rowSize pos = bmpImageoffset + (bmpHeight - 1 - row) * rowSize
else: # Bitmap is stored top-to-bottom else: # Bitmap is stored top-to-bottom
pos = bmpImageoffset + row * rowSize pos = bmpImageoffset + row * rowSize