How to change the resolution of the simulator?


The simulator seems locked to 800x600. I can’t change it.

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

Simulator using VSCode + WSL (ubuntu), gcc

What LVGL version are you using?


What do you want to achieve?

Change the resolution of the simulator window to 1920x1080

What have you tried so far?

I have tried changing the values in lv_drv_conf.h which was how I achieved this in v7:

#  define MONITOR_HOR_RES     1920
#  define MONITOR_VER_RES     1080

I have cloned the simulator repository (GitHub - lvgl/lv_sim_vscode_sdl) and edited the lv_drv_conf in the root of the repo, am I meant to put it somewhere?


Run make clean and then rebuild

1 Like