diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-07 23:43:15 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-07 23:43:15 +0100 |
commit | b9dd0a60c300b0de6b117500f67b6724b520652c (patch) | |
tree | d9688a77d25e8e2b4ec2ce2357bfd54dbf1fc33d /frontends/amiga/clipboard.c | |
parent | 83c38318530678b81fa837e8c330107c97f447e2 (diff) | |
download | netsurf-b9dd0a60c300b0de6b117500f67b6724b520652c.tar.gz netsurf-b9dd0a60c300b0de6b117500f67b6724b520652c.tar.bz2 |
accessor for window from gui_window_2
Diffstat (limited to 'frontends/amiga/clipboard.c')
-rw-r--r-- | frontends/amiga/clipboard.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/amiga/clipboard.c b/frontends/amiga/clipboard.c index d0372c267..ae3d22e3f 100644 --- a/frontends/amiga/clipboard.c +++ b/frontends/amiga/clipboard.c @@ -280,8 +280,8 @@ void ami_drag_selection(struct gui_window *g) return; } - x = gwin->win->MouseX; - y = gwin->win->MouseY; + x = ami_gui2_get_window(gwin)->MouseX; + y = ami_gui2_get_window(gwin)->MouseY; if(ami_text_box_at_point(gwin, (ULONG *)&x, (ULONG *)&y)) { @@ -296,8 +296,8 @@ void ami_drag_selection(struct gui_window *g) } else { - x = gwin->win->MouseX; - y = gwin->win->MouseY; + x = ami_gui2_get_window(gwin)->MouseX; + y = ami_gui2_get_window(gwin)->MouseY; if(ami_gadget_hit(gwin->objects[GID_URL], x, y)) { @@ -305,7 +305,7 @@ void ami_drag_selection(struct gui_window *g) { utf8text = ami_utf8_easy(sel); RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_URL], - gwin->win, NULL, STRINGA_TextVal, utf8text, TAG_DONE); + ami_gui2_get_window(gwin), NULL, STRINGA_TextVal, utf8text, TAG_DONE); free(sel); ami_utf8_free(utf8text); } @@ -316,7 +316,7 @@ void ami_drag_selection(struct gui_window *g) { utf8text = ami_utf8_easy(sel); RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_SEARCHSTRING], - gwin->win, NULL, STRINGA_TextVal, utf8text, TAG_DONE); + ami_gui2_get_window(gwin), NULL, STRINGA_TextVal, utf8text, TAG_DONE); free(sel); ami_utf8_free(utf8text); } |