summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-03-16 21:07:14 +0000
committerVincent Sanders <vince@kyllikki.org>2016-03-16 21:07:14 +0000
commit69d9d5dd224f974f69b32267757aff2089a4c12a (patch)
tree07493e8c555914d172759a1a20e2339b2d535696
parent06c84a26e93b3f3ae84ef93ee45f81751f2d47c7 (diff)
downloadnetsurf-69d9d5dd224f974f69b32267757aff2089a4c12a.tar.gz
netsurf-69d9d5dd224f974f69b32267757aff2089a4c12a.tar.bz2
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.
-rw-r--r--windows/drawable.c2
1 files changed, 1 insertions, 1 deletions
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;
}