fix(Windows): use global lock (#6425)

This commit is contained in:
Liam
2024-07-08 05:38:47 +02:00
committed by GitHub
parent f8c26ea150
commit af041657aa
6 changed files with 65 additions and 28 deletions

View File

@@ -79,6 +79,8 @@ Usage
return -1;
}
lv_lock();
lv_indev_t* pointer_device = lv_windows_acquire_pointer_indev(display);
if (!pointer_device)
{
@@ -99,6 +101,8 @@ Usage
lv_demo_widgets();
lv_unlock();
while (1)
{
uint32_t time_till_next = lv_timer_handler();