Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The disp_drv.physical_xxx does not work by using SDL2 (the flush_cb is sdl_display_flush() in the lv_driver lib) #7330

Open
Staok opened this issue Nov 20, 2024 · 0 comments

Comments

@Staok
Copy link

Staok commented Nov 20, 2024

LVGL version

8.3.11

Platform

win64, PC

What happened?

Using SDL2 (the flush_cb is sdl_display_flush() in the lv_driver lib)

In the sdl hal init():
...
lv_disp_draw_buf_init(draw buf: &disp buf, buf1: buf_1,buf2: buf_2,...);
...
disp_drv.hor_res = SDL_HOR_RES;
disp_drv.ver_res = SDL_VER_RES;
disp_drv.physical_hor_res = SDL_HOR_RES / 2;
disp_drv.physical_ver_res = SDL_VER_RES / 2;
...
lv_disp_t * disp = lv_disp_drv_register(driver: &disp_drv():
...

the display is is abnormal
for some reason, the screen display cannot show here. The screen display is divided into two upper halves display arranged on the left and right.

the sdl config in lv_drv_conf:
image

How to reproduce?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant