From e9b0a3ffb4e5d22f78360451d2ecba67094f6b49 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 7 Jul 2011 18:35:03 +0000 Subject: Fix build. svn path=/trunk/netsurf/; revision=12588 --- riscos/textselection.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'riscos') diff --git a/riscos/textselection.c b/riscos/textselection.c index 23b370a7e..a87b6cbdf 100644 --- a/riscos/textselection.c +++ b/riscos/textselection.c @@ -552,10 +552,6 @@ void ro_gui_selection_dragging(wimp_message *message) g = ro_gui_window_lookup(drag->w); if ((drag->flags & wimp_DRAGGING_TERMINATE_DRAG) || !g) { - if (drag_claimed) { - /* make sure that we erase the ghost caret */ - caret_remove(&ghost_caret); - } drag_claimed = false; return; @@ -587,29 +583,12 @@ void ro_gui_selection_dragging(wimp_message *message) } if (textarea) { - struct box *text_box = NULL; - int pixel_offset; - int char_offset; - /* draw/move the ghost caret */ - if (drag_claimed) - caret_remove(&ghost_caret); - else + if (!drag_claimed) gui_window_set_pointer(g, GUI_POINTER_CARET); - text_box = textarea_get_position(textarea, pos.x - gadget_box_x, - pos.y - gadget_box_y, - &char_offset, &pixel_offset); - - caret_set_position(&ghost_caret, bw, text_box, - char_offset, pixel_offset); - drag_claimed = true; } else { - if (drag_claimed) { - /* make sure that we erase the ghost caret */ - caret_remove(&ghost_caret); - } drag_claimed = false; } @@ -645,7 +624,6 @@ void ro_gui_selection_dragging(wimp_message *message) void ro_gui_selection_drag_reset(void) { - caret_remove(&ghost_caret); drag_claimed = false; } -- cgit v1.2.3