diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c index 2408c236..1fde84f0 100644 --- a/release/c/wuffs-unsupported-snapshot.c +++ b/release/c/wuffs-unsupported-snapshot.c @@ -42432,7 +42432,7 @@ wuffs_tga__decoder__decode_image_config( self->private_impl.f_scratch_bytes_per_pixel = 1; self->private_impl.f_src_bytes_per_pixel = 1; self->private_impl.f_src_pixfmt = 2164523016; - self->private_impl.f_opaque = ((self->private_impl.f_header_color_map_entry_size != 15) || (self->private_impl.f_header_color_map_entry_size != 24)); + self->private_impl.f_opaque = ((self->private_impl.f_header_color_map_entry_size == 15) || (self->private_impl.f_header_color_map_entry_size == 24)); } else if ((self->private_impl.f_header_image_type | 8) == 10) { if ((self->private_impl.f_header_pixel_depth == 15) || (self->private_impl.f_header_pixel_depth == 16)) { self->private_impl.f_scratch_bytes_per_pixel = 4; @@ -42611,7 +42611,7 @@ wuffs_tga__decoder__decode_image_config( self->private_impl.f_width, self->private_impl.f_height, self->private_impl.f_frame_config_io_position, - false); + self->private_impl.f_opaque); } self->private_impl.f_call_sequence = 3; diff --git a/std/tga/decode_tga.wuffs b/std/tga/decode_tga.wuffs index a3f518f1..f83f493d 100644 --- a/std/tga/decode_tga.wuffs +++ b/std/tga/decode_tga.wuffs @@ -155,8 +155,8 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_ this.src_bytes_per_pixel = 1 this.src_pixfmt = base.PIXEL_FORMAT__INDEXED__BGRA_NONPREMUL this.opaque = - (this.header_color_map_entry_size <> 0x0F) or - (this.header_color_map_entry_size <> 0x18) + (this.header_color_map_entry_size == 0x0F) or + (this.header_color_map_entry_size == 0x18) } else if (this.header_image_type | 8) == 0x0A { if (this.header_pixel_depth == 0x0F) or @@ -247,7 +247,7 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_ width: this.width, height: this.height, first_frame_io_position: this.frame_config_io_position, - first_frame_is_opaque: false) + first_frame_is_opaque: this.opaque) } this.call_sequence = 3