Skip to content

Commit 8b30494

Browse files
committed
Fix copying B to G in bitmapfilter.blend
1 parent e089f32 commit 8b30494

File tree

2 files changed

+126
-126
lines changed

2 files changed

+126
-126
lines changed

shared-module/bitmapfilter/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ void shared_module_bitmapfilter_blend(
498498
int r2 = FIVE_TO_SIX(COLOR_RGB565_TO_R5(pixel2));
499499
int r = SIX_TO_FIVE(lookup[r1 * 64 + r2]);
500500

501-
int g1 = COLOR_RGB565_TO_R5(pixel1);
502-
int g2 = COLOR_RGB565_TO_R5(pixel2);
501+
int g1 = COLOR_RGB565_TO_G6(pixel1);
502+
int g2 = COLOR_RGB565_TO_G6(pixel2);
503503
int g = lookup[g1 * 64 + g2];
504504

505505
int b1 = FIVE_TO_SIX(COLOR_RGB565_TO_B5(pixel1));

0 commit comments

Comments
 (0)