Skip to content

Use correct "natural" surface size when computing surface-to-buffer matrix

If the source rectangle is not set, we need to use the surface size given by the attached buffer. It's computed as buffer size / scale, but the buffer can also be transformed. In other words, we need to compute the natural surface size as follows - buffer size / scale and transpose the result if the buffer is rotated 90 or 270 degrees.

Merge request reports

Loading