Ticket #1280 (closed defect: duplicate)
Cairo computes bounds wrong in imageSurfaceGetPixels
|Reported by:||guest||Owned by:||paolo|
r in imageSurfaceGetPixels is the stride of the surface, which is defined as being the number of bytes of one row. Therefore, bytes can just be computed by r * height. Also, if I understand correctly, the + 7 should have been outside the row computation to force rounding upwards.
Further more, the bounds in mkSurfaceData seem to be off by one.
Please see attached patch.