pixel-buffer: add the concept of a device scale

System Internals / Plymouth - Giovanni Campagna [src.gnome.org] - 3 March 2016 13:32 EST

The device scale is a scale transformation that is applied to the pixel buffer contents, but is transparent to the user of the buffer (all pixel values are in logical pixels, not device pixels). The concept is modeled after the cairo API, and it is useful to implement HiDPI monitor support.

https://bugs.freedesktop.org/show_bug.cgi?id=84482

d70c1dc pixel-buffer: add the concept of a device scale
src/libply-splash-core/ply-pixel-buffer.c | 348 ++++++++++++++++++-----------
src/libply-splash-core/ply-pixel-buffer.h | 9 +
2 files changed, 221 insertions(+), 136 deletions(-)

Upstream: cgit.freedesktop.org


  • Share