Skip to content

Commit 8ad667a

Browse files
committed
fix(display): the renderer pauses when resizing the window (#164)
1 parent 82fad1b commit 8ad667a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform/windows/windows_display.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,9 @@ static void OnWMSize(LCUI_Event e, void *arg)
510510
EventTrigger_Trigger(win.trigger, LCUI_DEVENT_RESIZE, &dpy_ev);
511511
WinSurface_ResizeFrameBuffer(surface, dpy_ev.resize.width,
512512
dpy_ev.resize.height);
513+
LCUIDisplay_Update();
514+
LCUIDisplay_Render();
515+
LCUIDisplay_Present();
513516
}
514517

515518
static int WinDisplay_BindEvent(int event_id, LCUI_EventFunc func, void *data,

0 commit comments

Comments
 (0)