Skip to content
Commit 99ef521e authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Add methods for converting buffer and surface coordinates

Unfortunately, in order to map a point from the surface-local coordinate
space to the buffer pixel coordinate space, one cannot divide the point
by the scale factor since the buffer might be rotated or flipped.

This change introduces a couple of helper methods for converting points,
regions, and rectangles from the surface-local coordinates to the buffer
pixel coordinates and vice versa.
parent 8651045c
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