mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 20:38:11 +02:00
image: clean up warning
This commit is contained in:
parent
6b4cd4a989
commit
25e2afde47
1 changed files with 1 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ ply_image_load (ply_image_t *image)
|
|||
{
|
||||
png_struct *png;
|
||||
png_info *info;
|
||||
png_uint_32 width, height, bytes_per_row, row;
|
||||
png_uint_32 width, height, row;
|
||||
int bits_per_pixel, color_type, interlace_method;
|
||||
png_byte **rows;
|
||||
uint32_t *bytes;
|
||||
|
|
@ -145,7 +145,6 @@ ply_image_load (ply_image_t *image)
|
|||
png_get_IHDR (png, info,
|
||||
&width, &height, &bits_per_pixel,
|
||||
&color_type, &interlace_method, NULL, NULL);
|
||||
bytes_per_row = 4 * width;
|
||||
|
||||
if (color_type == PNG_COLOR_TYPE_PALETTE)
|
||||
png_set_palette_to_rgb (png);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue