Height calculation was 1 off in ImageList_Read.
This commit is contained in:
parent
b2f6f0e7d2
commit
bd26e4d2cf
|
@ -1972,8 +1972,8 @@ static HBITMAP _read_bitmap(LPSTREAM pstm,int ilcFlag,int cx,int cy) {
|
|||
nbytesperline = (height/cy)*bytesperline;
|
||||
for (i=0;i<height;i++) {
|
||||
memcpy(
|
||||
nbits+((height-i)%cy)*nbytesperline+(i/cy)*bytesperline,
|
||||
bits+bytesperline*(height-i),
|
||||
nbits+((height-1-i)%cy)*nbytesperline+(i/cy)*bytesperline,
|
||||
bits+bytesperline*(height-1-i),
|
||||
bytesperline
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue