File tree 1 file changed +5
-5
lines changed
ext_mod/lcd_bus/esp32_src 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 380
380
if (x_start == 0 && x_end == (dst_width - 1 ) && !rgb565_dither ) {
381
381
memcpy (dst , src , dst_width * (y_end - y_start + 1 ) * bytes_per_pixel );
382
382
} else {
383
- uint32_t src_bytes_per_line = (x_end - x_start + 1 ) * bytes_per_pixel ;
383
+ uint32_t src_bytes_per_line = (x_end - x_start ) * bytes_per_pixel ;
384
384
uint32_t dst_bytes_per_line = dst_width * bytes_per_pixel ;
385
385
386
386
if (rgb565_dither ) {
409
409
uint32_t i ;
410
410
uint32_t j ;
411
411
412
- uint32_t src_bytes_per_line = x_end - x_start + 1 ;
412
+ uint32_t src_bytes_per_line = x_end - x_start ;
413
413
uint32_t offset = y_start * src_bytes_per_line + x_start ;
414
414
415
415
switch (rotate ) {
468
468
uint32_t i ;
469
469
uint32_t j ;
470
470
471
- uint32_t src_bytes_per_line = x_end - x_start + 1 ;
471
+ uint32_t src_bytes_per_line = x_end - x_start ;
472
472
uint32_t offset = y_start * src_bytes_per_line + x_start ;
473
473
474
474
if (rgb565_dither ) {
577
577
uint32_t i ;
578
578
uint32_t j ;
579
579
580
- uint32_t src_bytes_per_line = (x_end - x_start + 1 ) * 3 ;
580
+ uint32_t src_bytes_per_line = (x_end - x_start ) * 3 ;
581
581
uint32_t offset = y_start * src_bytes_per_line + x_start * 3 ;
582
582
583
583
switch (rotate ) {
636
636
uint32_t i ;
637
637
uint32_t j ;
638
638
639
- uint32_t src_bytes_per_line = x_end - x_start + 1 ;
639
+ uint32_t src_bytes_per_line = x_end - x_start ;
640
640
uint32_t offset = y_start * src_bytes_per_line + x_start ;
641
641
642
642
switch (rotate ) {
You can’t perform that action at this time.
0 commit comments