diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-20 22:03:59 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-20 22:03:59 +0100 |
commit | 45736594a173d7a715b217a5236e33fb89c95436 (patch) | |
tree | 3ea34952a09bb5954e489106734c390bb602d876 /amiga/clipboard.c | |
parent | b1342796448c01515d8dcb4d992f804a5f2f4fb4 (diff) | |
download | netsurf-45736594a173d7a715b217a5236e33fb89c95436.tar.gz netsurf-45736594a173d7a715b217a5236e33fb89c95436.tar.bz2 |
Get presence of text input cleanly.
Diffstat (limited to 'amiga/clipboard.c')
-rwxr-xr-x | amiga/clipboard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/amiga/clipboard.c b/amiga/clipboard.c index 83548304e..8ecc4ef30 100755 --- a/amiga/clipboard.c +++ b/amiga/clipboard.c @@ -20,7 +20,6 @@ #include "desktop/plotters.h" #include "desktop/selection.h" #include "desktop/textinput.h" -#include "render/box.h" #include "utils/utf8.h" #include "amiga/bitmap.h" @@ -345,7 +344,6 @@ struct ami_text_selection *ami_selection_to_text(struct gui_window_2 *gwin) void ami_drag_selection(struct selection *s) { - struct box *text_box; int x; int y; char *utf8text; @@ -362,7 +360,7 @@ void ami_drag_selection(struct selection *s) x = gwin->win->MouseX; y = gwin->win->MouseY; - if(text_box = ami_text_box_at_point(gwin, (ULONG *)&x, (ULONG *)&y)) + if(ami_text_box_at_point(gwin, (ULONG *)&x, (ULONG *)&y)) { iffh = ami_clipboard_init_internal(1); |