Cst816s: scale down SDL mouse coordinates according to MONITOR_ZOOM
The lv_drivers provided monitor driver supports a `MONITOR_ZOOM`-factor which scales the window by the set factor. This is 'useful when simulating small screens'. The zoom can be set as cmake configuration setting `-DMONITOR_ZOOM=1`. Probably even more usefull for high-dpi screens where 240 pixels is really tiny.
This commit is contained in:
@@ -55,6 +55,7 @@ The following configuration settings can be added to the first `cmake -S . -B bu
|
||||
- `-DInfiniTime_DIR=InfiniTime`: a full path to an existing InfiniTime repository checked out.
|
||||
Inside that directory the `src/libs/lvgl` submodule must be checked out as well.
|
||||
The default value points to the InfiniTime submodule in this repository.
|
||||
- `-DMONITOR_ZOOM=1`: scale simulator window by this factor
|
||||
|
||||
## Run Simulator
|
||||
|
||||
|
Reference in New Issue
Block a user