Skip to content

Commit bd03b13

Browse files
authored
Merge pull request #114 from KerteszRoland/master
fix(heap_corruption): that caused LoadProhibited, StoreProhibited errors
2 parents 2e93396 + b3eca9e commit bd03b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LV_Helper_v9.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static void disp_flush( lv_display_t *disp_drv, const lv_area_t *area, uint8_t *
2929
uint32_t w = ( area->x2 - area->x1 + 1 );
3030
uint32_t h = ( area->y2 - area->y1 + 1 );
3131
auto *plane = (LilyGo_Display *)lv_display_get_user_data(disp_drv);
32-
lv_draw_sw_rgb565_swap(color_p, w * h * 2);
32+
lv_draw_sw_rgb565_swap(color_p, w * h);
3333
plane->pushColors(area->x1, area->y1, w, h, (uint16_t *)color_p);
3434
lv_display_flush_ready( disp_drv );
3535
}

0 commit comments

Comments
 (0)