]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-pixel-buffer: Fix right and bottom edge rendering of scaled buffers
authorHans de Goede <hdegoede@redhat.com>
Fri, 1 Mar 2019 16:22:30 +0000 (17:22 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Mar 2019 09:47:08 +0000 (10:47 +0100)
commit4e1c00b89a710c38ba04206875c4d7c7c1d49c75
treeed8551e187c54a37aec5274bfa9b919f42f03cc1
parent599aef64f84690f9e644071628ca67a9db7d4abc
ply-pixel-buffer: Fix right and bottom edge rendering of scaled buffers

When scaling a buffer 2x and calling ply_pixels_interpolate to interpolate
the last row / column, the extra pixels used for pixels would go out of
bounds and be replaced with a black pixel. This causes a 50% dimming of the
last row / column.

This 50% dimming leads to an ugly darkline when a theme draws 2 images
which are supposed to be joined together.

This commit fixes this by clipping the coordinates to the source image
limits instead of using black pixels when interpolating right and bottom
edge pixels.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply-splash-core/ply-pixel-buffer.c