fixed dynamic allocation
This commit is contained in:
parent
99fc8760c7
commit
416265a1d5
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ try:
|
|||
|
||||
rowSize = (bmpWidth * 3 + 3) & ~3 # 32-bit line boundary
|
||||
|
||||
databuf = bytearray(2250 * 4) # its huge! but its also fast :)
|
||||
databuf = bytearray(bmpWidth * bmpHeight * 4) # its huge! but its also fast :)
|
||||
|
||||
for row in range(bmpHeight): # For each scanline...
|
||||
if(flip): # Bitmap is stored bottom-to-top order (normal BMP)
|
||||
|
|
|
|||
Loading…
Reference in a new issue