Skip to content

Commit

Permalink
oh
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 9, 2025
1 parent d865393 commit a7a2aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libImaging/BcnEncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ImagingBcnEncode(Imaging im, ImagingCodecState state, UINT8 *buf, int bytes) {
current_rgba = &block[i + j * 4];
for (k = 0; k < 3; k++) {
current_rgba->color[k] =
(UINT8)im->image[y][x + (im->pixelsize == 1 ? 1 : k)];
(UINT8)im->image[y][x + (im->pixelsize == 1 ? 0 : k)];
}
if (has_alpha_channel) {
if ((UINT8)im->image[y][x + 3] == 0) {
Expand Down

0 comments on commit a7a2aad

Please sign in to comment.