mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 06:08:00 +02:00
ply-pixel-buffer: Fix bottom edge rendering of scaled buffers
Commit 4e1c00b89a (" ply-pixel-buffer: Fix right and bottom edge rendering
of scaled buffers"), which tried to fix a minor rendering issue with the right
and bottom edge of scaled images, contains a typo which actually makes things
worse :|
When checking if iy exceeds the height of the image, ix gets set to the height
instead of iy leading to addressing pass part of the buffer which leads to
various rendering artifacts.
This commit fixes the typo and thus also the artifacts.
Fixes: #83
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
a8aad2799c
commit
4dff3485d6
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ ply_pixels_interpolate (uint32_t *bytes,
|
|||
ix = width - 1;
|
||||
|
||||
if (iy >= height)
|
||||
ix = height - 1;
|
||||
iy = height - 1;
|
||||
|
||||
if (ix < 0 || iy < 0)
|
||||
pixels[offset_y][offset_x] = 0x00000000;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue