Skip to content

Commit a0c499f

Browse files
fix rotation bug in LVGL v9.2.0
1 parent 702daa0 commit a0c499f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,11 @@ void lvgl_displayFlushing(lv_display_t * disp, const lv_area_t * area, unsigned
246246
lv_draw_sw_rotate(px_map, rotated_buf,
247247
w, h, lv_draw_buf_width_to_stride(w, cf),
248248
lv_draw_buf_width_to_stride(h, cf),
249+
#if (LVGL_VERSION_MINOR >= 2)
250+
rotation, cf);
251+
#else
249252
LV_DISPLAY_ROTATION_90, cf);
253+
#endif
250254
rotated_area.x1 = lv_display_get_vertical_resolution(disp) - area->y2 - 1;
251255
rotated_area.y1 = area->x1;
252256
//rotated_area.y2 = dsi_getDisplayYSize() - area->x1 - 1;

0 commit comments

Comments
 (0)