mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 10:08:06 +02:00
ply-pixel-buffer: Fix marking buffers as opaque when doing a solid fill
Instead of comparing fill_area addresses actually compare the contents of the ply_rectangles. This allows us to use the memcpy fastpath in ply_pixel_buffer_with_buffer more often. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
986c911e21
commit
e1e9e554d2
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ ply_pixel_buffer_fill_area_with_pixel_value (ply_pixel_buffer_t *buffer,
|
|||
/* If we're filling the entire buffer with a fully opaque color,
|
||||
* then make note of it
|
||||
*/
|
||||
if (fill_area == &buffer->area &&
|
||||
if (memcmp(fill_area, &buffer->area, sizeof(ply_rectangle_t)) == 0 &&
|
||||
(pixel_value >> 24) == 0xff) {
|
||||
buffer->is_opaque = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue