We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608d76e commit b15cfedCopy full SHA for b15cfed
ext_mod/lcd_bus/esp32_include/rgb565_dither.h
@@ -11,9 +11,9 @@
11
12
static inline rgb565_dither_pixel(uint8_t treshold_id, uint16_t *pixel)
13
{
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)) ;
+ *pixel = (((((*pixel >> 8) & 0xF8) + red_thresh[treshold_id]) << 8) |
+ ((((*pixel >> 3) & 0xFC) + green_thresh[treshold_id]) << 3) |
+ ((((*pixel & 0x1F) << 3) + blue_thresh[treshold_id]) >> 3)) ;
17
}
18
19
#endif
0 commit comments