1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibGfx/CCITT: Don't use change's color to set current_color

No behavior change, `to_encode` always receive a `Change` with a
different color.
This commit is contained in:
Lucas CHOLLET 2024-03-06 02:13:25 -05:00 committed by Tim Flynn
parent 9a18566850
commit 780e230af5

View file

@ -450,7 +450,7 @@ ErrorOr<ReferenceLine> decode_single_ccitt_2d_line(BigEndianInputBitStream& inpu
TRY(decoded_bits.write_bits(current_color == ccitt_white ? 0u : 1u, 1)); TRY(decoded_bits.write_bits(current_color == ccitt_white ? 0u : 1u, 1));
column = change.column + offset; column = change.column + offset;
current_color = change.color; current_color = invert(current_color);
remainder_from_pass_mode = 0; remainder_from_pass_mode = 0;
TRY(current_line.try_empend(current_color, column)); TRY(current_line.try_empend(current_color, column));