From 69d9d5dd224f974f69b32267757aff2089a4c12a Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 16 Mar 2016 21:07:14 +0000 Subject: frontends should not call the reformat API directly The reformat API locking semantics are challenging to understand, efectiveky browser_window_reformat should never be called by frontend code directly except explicitly on the reformat callback. Otherwise the content may already be locked and the system winds up asserting. --- windows/drawable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/drawable.c b/windows/drawable.c index 317143a46..4480eeaaa 100644 --- a/windows/drawable.c +++ b/windows/drawable.c @@ -208,7 +208,7 @@ nsws_drawable_hscroll(struct gui_window *gw, HWND hwnd, WPARAM wparam) static LRESULT nsws_drawable_resize(struct gui_window *gw) { - browser_window_reformat(gw->bw, false, gw->width, gw->height); + browser_window_schedule_reformat(gw->bw); return 0; } -- cgit v1.2.3