Skip to content
Commit 49aadee2 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent 5475751c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment