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:
parent
9a18566850
commit
780e230af5
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue