Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit 4eb5b97

Browse files
committed
Fix for compressing edge pixels in frames with non-power-of-four dimensions when using squish (quality setting High or above for Hap and Hap Alpha)
1 parent 4d7bc13 commit 4eb5b97

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/SquishEncoder.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,10 @@ static int HapCodecSquishEncoderEncode(HapCodecDXTEncoderRef encoder HAP_ATTR_UN
129129
else HapCodecSquishCopyPixelRGBA(copy_src, copy_dst);
130130

131131
mask |= ( 1 << ( 4*py + px ) );
132+
133+
copy_src += 4;
132134
}
133-
else
134-
{
135-
copy_dst += 4;
136-
}
135+
copy_dst += 4;
137136
}
138137
copy_src += src_bytes_per_row - (MIN(remaining_width, 4) * 4);
139138
}

0 commit comments

Comments
 (0)