lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
208 stars 140 forks source link

Don't specify resolution. #18

Closed rtwfroody closed 2 years ago

rtwfroody commented 2 years ago

Specifying the resolution is bad if it's wrong, and the fb driver autodetects it in any case.

kisvegabor commented 2 years ago

It needs to be set to something here, else the default 320x240 resolution will be sued.

rtwfroody commented 2 years ago

You're right. I thought it didn't because it works better if I don't set it, and the fb driver prints out the actual size. But it doesn't change what lvgl thinks the size of the screen is. I guess that's hard to do at that stage.

If vinfo in fbdev.c was global, you could take the detected screen size from there, but it's not.