Skip to content

Commit

Permalink
fix(display): the renderer pauses when resizing the window (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Nov 18, 2018
1 parent 82fad1b commit 8ad667a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/windows/windows_display.c
Expand Up @@ -510,6 +510,9 @@ static void OnWMSize(LCUI_Event e, void *arg)
EventTrigger_Trigger(win.trigger, LCUI_DEVENT_RESIZE, &dpy_ev);
WinSurface_ResizeFrameBuffer(surface, dpy_ev.resize.width,
dpy_ev.resize.height);
LCUIDisplay_Update();
LCUIDisplay_Render();
LCUIDisplay_Present();
}

static int WinDisplay_BindEvent(int event_id, LCUI_EventFunc func, void *data,
Expand Down

0 comments on commit 8ad667a

Please sign in to comment.