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 0814bfe commit f4f508cCopy full SHA for f4f508c
ext_mod/lcd_bus/esp32_src/rgb_bus_rotation.c
@@ -384,10 +384,11 @@
384
uint32_t dst_bytes_per_line = dst_width * bytes_per_pixel;
385
386
if (rgb565_dither) {
387
+ uint32_t tmp_x;
388
for(uint32_t y = y_start; y < y_end; y++) {
389
for (uint32_t x=0;x<x_end;x++) {
- rgb565_dither_pixel(CALC_THRESHOLD(x, y), (uint16_t *)src + (x * 2));
390
- dst + (x * 2) = src + (x * 2);
+ rgb565_dither_pixel(CALC_THRESHOLD(x, y), (uint16_t *)(src) + x);
391
+ copy_16bpp((uint16_t *)(src) + x, (uint16_t *)(to) + x);
392
}
393
dst += dst_bytes_per_line;
394
src += src_bytes_per_line;
0 commit comments