Skip to content

Commit

Permalink
Fix crashing during resizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
diylxy authored Dec 18, 2023
1 parent e6a40e0 commit c744e39
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ void LvglTaskSchedulerLoop()
if (g_WindowResizingSignal)
{
lv_disp_t* CurrentDisplay = ::lv_display_get_default();
g_WindowResizingSignal = false;
if (CurrentDisplay)
{
::LvglCreateDisplayDriver(
Expand All @@ -860,11 +861,10 @@ void LvglTaskSchedulerLoop()
CurrentDisplay,
static_cast<std::int32_t>(g_WindowWidth),
static_cast<std::int32_t>(g_WindowHeight));

::lv_refr_now(CurrentDisplay);
continue;
//::lv_refr_now(CurrentDisplay);
}

g_WindowResizingSignal = false;
}

::lv_timer_handler();
Expand Down

0 comments on commit c744e39

Please sign in to comment.