Skip to content
  • Vlad Zahorodnii's avatar
    Add methods for converting buffer and surface coordinates · 5041e02f
    Vlad Zahorodnii authored
    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.
    5041e02f