Skip to content

Commit b15cfed

Browse files
committed
fixes pointer issue
1 parent 608d76e commit b15cfed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext_mod/lcd_bus/esp32_include/rgb565_dither.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
static inline rgb565_dither_pixel(uint8_t treshold_id, uint16_t *pixel)
1313
{
14-
*pixel = (((((pixel >> 8) & 0xF8) + red_thresh[treshold_id]) << 8) |
15-
((((pixel >> 3) & 0xFC) + green_thresh[treshold_id]) << 3) |
16-
((((pixel & 0x1F) << 3) + blue_thresh[treshold_id]) >> 3)) ;
14+
*pixel = (((((*pixel >> 8) & 0xF8) + red_thresh[treshold_id]) << 8) |
15+
((((*pixel >> 3) & 0xFC) + green_thresh[treshold_id]) << 3) |
16+
((((*pixel & 0x1F) << 3) + blue_thresh[treshold_id]) >> 3)) ;
1717
}
1818

1919
#endif

0 commit comments

Comments
 (0)