Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 19, 2024
1 parent 72c3420 commit f41910c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libImaging/BcnEncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ rgb565_lerp(UINT16 c0, UINT16 c1, UINT8 a_fac, UINT8 b_fac) {
return PACK_SHORT_565(
(r0 * a_fac + r1 * b_fac) / (a_fac + b_fac),
(g0 * a_fac + g1 * b_fac) / (a_fac + b_fac),
(b0 * a_fac + b1 * b_fac) / (a_fac + b_fac));
(b0 * a_fac + b1 * b_fac) / (a_fac + b_fac)
);
}

typedef struct {
Expand Down Expand Up @@ -82,7 +83,8 @@ pick_2_major_colors(
const UINT8 *color_freq,
UINT16 color_count,
UINT16 *color0,
UINT16 *color1) {
UINT16 *color1
) {
UINT32 i;
Color colors[16];
memset(colors, 0, sizeof(colors));
Expand Down

0 comments on commit f41910c

Please sign in to comment.