We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b0b37 commit dd83f92Copy full SHA for dd83f92
kidfile/src/image_formats/bip.rs
@@ -44,7 +44,7 @@ pub const ENTRY_BIP: Decoder<Image> = Decoder {
44
let mut dst_block_x_idx = 0;
45
let mut dst_block_y_idx = 0;
46
for _ in 0..tile_x_blocks * tile_y_blocks {
47
- let mut src_block_start = pixel_section + (src_block_y_idx * (512 * 32) + src_block_x_idx * 32) as usize;
+ let mut src_block_start = pixel_section + (src_block_y_idx * (512 * 32) + 512 + src_block_x_idx * 32) as usize;
48
let dst_y_start = tile_y + dst_block_y_idx * 30;
49
for dst_y in dst_y_start..dst_y_start + 30 {
50
if src_block_start + 30 >= bytes.len() {
0 commit comments