[Simulator] How to change the window size of the demo in the simulator?

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

Code Blocks c/c++ compiler

What LVGL version are you using?

No release published. I am using the package of code blocks simulator

What do you want to achieve?

change the window size of the demo in the simulator project

What have you tried so far?

Cannot find any explanation about this topic

Code to reproduce

Didn’t change any part of the code

in lv_conf.h file

 #define LV_HOR_RES_MAX          (800)
 #define LV_VER_RES_MAX          (480)

In addition to @guoweilkd’s suggestion you also need to change the window size in lv_drv_conf.h. The MAX values just specify how large the display is allowed to be, not its actual size.

Now I can successfully changing the size of the window.
Thank you both.