Skip to content

Commit 5393bc4

Browse files
committed
More formatting
1 parent c9c7f02 commit 5393bc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shared-module/bitmaptools/__init__.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,8 @@ void common_hal_bitmaptools_alphablend(displayio_bitmap_t *dest, displayio_bitma
881881
blend_source2 = skip_source2_index_none || *sptr2 != (uint8_t)skip_source2_index;
882882
if (blend_source1 && blend_source2) {
883883
// Premultiply by the alpha factor
884-
int sca1 = *sptr1++ * ifactor1;
885-
int sca2 = *sptr2++ * ifactor2;
884+
int sca1 = *sptr1++ *ifactor1;
885+
int sca2 = *sptr2++ *ifactor2;
886886
// Blend
887887
int blend;
888888
if (blendmode == BITMAPTOOLS_BLENDMODE_SCREEN) {
@@ -894,10 +894,10 @@ void common_hal_bitmaptools_alphablend(displayio_bitmap_t *dest, displayio_bitma
894894
pixel = (blend / (256 * ifactor1 + 256 * ifactor2 - ifactor1 * ifactor2));
895895
} else if (blend_source1) {
896896
// Apply iFactor1 to source1 only
897-
pixel = *sptr1++ * ifactor1 / 256;
897+
pixel = *sptr1++ *ifactor1 / 256;
898898
} else if (blend_source2) {
899899
// Apply iFactor2 to source1 only
900-
pixel = *sptr2++ * ifactor2 / 256;
900+
pixel = *sptr2++ *ifactor2 / 256;
901901
} else {
902902
// Use the destination value
903903
pixel = *dptr;

0 commit comments

Comments
 (0)