Rotate screen problem - v8.0 - ILI9341 - stm32f407ZGT6

Description

What MCU/Processor/Board and compiler are you using?

stm32f407ZGT6

What LVGL version are you using?

v8.0
I’m trying to rotate the screen with modification some parameters as you can see below;

// lv_conf.h
#define LV_HOR_RES_MAX (320)
#define LV_VER_RES_MAX (240)

//lcd.c
LCD_Display_Dir(1);