mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-19 17:27:51 +03: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
Notes:
sideshowbarker
2024-07-17 03:14:39 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/780e230af5 Pull-request: https://github.com/SerenityOS/serenity/pull/23487 Reviewed-by: https://github.com/nico ✅
@ -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));
|
||||
|
||||
column = change.column + offset;
|
||||
current_color = change.color;
|
||||
current_color = invert(current_color);
|
||||
remainder_from_pass_mode = 0;
|
||||
|
||||
TRY(current_line.try_empend(current_color, column));
|
||||
|
Loading…
Reference in New Issue
Block a user