mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 03:32:35 +03:00
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.
This commit is contained in:
parent
06c84a26e9
commit
69d9d5dd22
@ -208,7 +208,7 @@ nsws_drawable_hscroll(struct gui_window *gw, HWND hwnd, WPARAM wparam)
|
|||||||
static LRESULT
|
static LRESULT
|
||||||
nsws_drawable_resize(struct gui_window *gw)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user