lvgl / lv_port_pc_visual_studio

Visual Studio projects for LVGL embedded graphics library. Recommended on Windows. Linux support with Wayland is work in progress.
MIT License
552 stars 282 forks source link

Fix crashing during resizing. #61

Closed diylxy closed 5 months ago

diylxy commented 6 months ago

I run this project on my computer today, hoping to integrate it into my project later, but I found this issue.
When I resize the window quickly for about 5 seconds, it crashes like this.
2023-12-18 230228 And it takes me about three hours trying to figure out what's wrong. Finally, I changed these lines of codes and unexpectedly soved this problem. So I opened this PR.

P.S. I also tried to comment ::lv_refr_now(CurrentDisplay);, but it doesn't work. The result is as follows.
2023-12-18 230917

Environment Information:
Windows 10 LTSC 10.0.19044
Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz
Microsoft Visual Studio Community 2022
Microsoft Visual C++ 2022
lvgl/lv_port_pc_visual_studio@master
lvgl/lvgl@0f9ee575
freetype/freetype@8f255c89
dlg@72dfcc85

MouriNaruto commented 6 months ago

https://github.com/lvgl/lv_port_pc_visual_studio/issues/60#issuecomment-1851255502

Kenji Mouri

MouriNaruto commented 5 months ago

The new backend is merged in the LVGL mainline. And this repository is adapted for that.

https://github.com/lvgl/lvgl/pull/5313

Kenji Mouri