From c744e39cfdeb68b1fd5e4817b5e2645fdd4cbb00 Mon Sep 17 00:00:00 2001 From: diylxy <148050370+diylxy@users.noreply.github.com> Date: Mon, 18 Dec 2023 23:11:43 +0800 Subject: [PATCH] Fix crashing during resizing. --- .../LvglWindowsDesktopApplication.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp b/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp index 4e022b0..519650f 100644 --- a/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp +++ b/LvglWindowsDesktopApplication/LvglWindowsDesktopApplication.cpp @@ -850,6 +850,7 @@ void LvglTaskSchedulerLoop() if (g_WindowResizingSignal) { lv_disp_t* CurrentDisplay = ::lv_display_get_default(); + g_WindowResizingSignal = false; if (CurrentDisplay) { ::LvglCreateDisplayDriver( @@ -860,11 +861,10 @@ void LvglTaskSchedulerLoop() CurrentDisplay, static_cast(g_WindowWidth), static_cast(g_WindowHeight)); - - ::lv_refr_now(CurrentDisplay); + continue; + //::lv_refr_now(CurrentDisplay); } - g_WindowResizingSignal = false; } ::lv_timer_handler();