mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-12 13:59:20 +03:00
add assert to ensure API contract is met
This commit is contained in:
parent
7e2a93bb72
commit
30b1fc1dbd
@ -2894,6 +2894,8 @@ void browser_window_redraw_rect(struct browser_window *bw, int x, int y,
|
||||
|
||||
void browser_window_page_drag_start(struct browser_window *bw, int x, int y)
|
||||
{
|
||||
assert(bw != NULL);
|
||||
|
||||
browser_window_set_drag_type(bw, DRAGGING_PAGE_SCROLL, NULL);
|
||||
|
||||
bw->drag_start_x = x;
|
||||
|
Loading…
Reference in New Issue
Block a user