Skip to content

Commit f4f508c

Browse files
committed
Fixes compile error
1 parent 0814bfe commit f4f508c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext_mod/lcd_bus/esp32_src/rgb_bus_rotation.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,11 @@
384384
uint32_t dst_bytes_per_line = dst_width * bytes_per_pixel;
385385

386386
if (rgb565_dither) {
387+
uint32_t tmp_x;
387388
for(uint32_t y = y_start; y < y_end; y++) {
388389
for (uint32_t x=0;x<x_end;x++) {
389-
rgb565_dither_pixel(CALC_THRESHOLD(x, y), (uint16_t *)src + (x * 2));
390-
dst + (x * 2) = src + (x * 2);
390+
rgb565_dither_pixel(CALC_THRESHOLD(x, y), (uint16_t *)(src) + x);
391+
copy_16bpp((uint16_t *)(src) + x, (uint16_t *)(to) + x);
391392
}
392393
dst += dst_bytes_per_line;
393394
src += src_bytes_per_line;

0 commit comments

Comments
 (0)