Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/codecs/ico/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ fn write_direntry<W: Write>(
w.write_u8(0)?;
// Reserved field (must be zero):
w.write_u8(0)?;
// Color planes:
w.write_u16::<LittleEndian>(0)?;
// Color planes: 1 is correct, 0 is merely accepted in most circumstances.
w.write_u16::<LittleEndian>(1)?;
// Bits per pixel:
w.write_u16::<LittleEndian>(color.bits_per_pixel())?;
// Image data size, in bytes:
Expand Down
Loading