Skip to content

Commit

Permalink
fix(display): the content has not been re-rendered when resizing wind…
Browse files Browse the repository at this point in the history
…ow (#164)
  • Loading branch information
lc-soft committed Oct 31, 2018
1 parent 6ea5a57 commit b0045a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/windows/windows_display.c
Original file line number Diff line number Diff line change
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 b0045a0

Please sign in to comment.