fix(drivers): fix hardware rotation of generic mipi display (#6470)

This commit is contained in:
Leo Liu
2024-07-10 00:45:48 +12:00
committed by GitHub
parent 58100f1d40
commit aa540f434f

View File

@@ -295,7 +295,7 @@ static void set_rotation(lv_lcd_generic_mipi_driver_t * drv, lv_display_rotation
break;
case LV_DISPLAY_ROTATION_90:
set_swap_xy(drv, !drv->swap_xy);
set_mirror(drv, !drv->mirror_x, drv->mirror_y);
set_mirror(drv, drv->mirror_x, !drv->mirror_y);
break;
case LV_DISPLAY_ROTATION_180:
set_swap_xy(drv, drv->swap_xy);
@@ -303,7 +303,7 @@ static void set_rotation(lv_lcd_generic_mipi_driver_t * drv, lv_display_rotation
break;
case LV_DISPLAY_ROTATION_270:
set_swap_xy(drv, !drv->swap_xy);
set_mirror(drv, drv->mirror_x, !drv->mirror_y);
set_mirror(drv, !drv->mirror_x, drv->mirror_y);
break;
}
send_cmd(drv, LV_LCD_CMD_SET_ADDRESS_MODE, (uint8_t[]) {