lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
260 stars 160 forks source link

Don't specify resolution. #18

Closed rtwfroody closed 3 years ago

rtwfroody commented 3 years ago

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

kisvegabor commented 3 years ago

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

rtwfroody commented 3 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.