mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
Make new function for starting a frames resize and use it.
This commit is contained in:
parent
c1be4c9e77
commit
195a77a4cd
@ -798,7 +798,7 @@ bool browser_window_resolve_frame_dimension(struct browser_window *bw,
|
||||
}
|
||||
|
||||
|
||||
bool browser_window_resize_frames(struct browser_window *bw,
|
||||
static bool browser_window_resize_frames(struct browser_window *bw,
|
||||
browser_mouse_state mouse, int x, int y,
|
||||
gui_pointer_shape *pointer)
|
||||
{
|
||||
@ -927,3 +927,11 @@ bool browser_window_resize_frames(struct browser_window *bw,
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool browser_window_frame_resize_start(struct browser_window *bw,
|
||||
browser_mouse_state mouse, int x, int y,
|
||||
gui_pointer_shape *pointer)
|
||||
{
|
||||
return browser_window_resize_frames(bw, mouse, x, y, pointer);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ void browser_window_recalculate_iframes(struct browser_window *bw);
|
||||
void browser_window_create_frameset(struct browser_window *bw,
|
||||
struct content_html_frames *frameset);
|
||||
void browser_window_recalculate_frameset(struct browser_window *bw);
|
||||
bool browser_window_resize_frames(struct browser_window *bw,
|
||||
bool browser_window_frame_resize_start(struct browser_window *bw,
|
||||
browser_mouse_state mouse, int x, int y,
|
||||
gui_pointer_shape *pointer);
|
||||
void browser_window_resize_frame(struct browser_window *bw, int x, int y);
|
||||
|
@ -585,7 +585,7 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
|
||||
struct browser_window *parent;
|
||||
for (parent = bw->parent; parent->parent;
|
||||
parent = parent->parent);
|
||||
if (browser_window_resize_frames(parent, mouse,
|
||||
if (browser_window_frame_resize_start(parent, mouse,
|
||||
x + bw->x, y + bw->y,
|
||||
&pointer)) {
|
||||
if (mouse & (BROWSER_MOUSE_DRAG_1 |
|
||||
|
Loading…
Reference in New Issue
Block a user