From a5bd3d112c126b3e59233aec7ff577d2feb19338 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 11 Oct 2012 20:13:38 +0100 Subject: fix warnings --- amiga/gui.c | 6 +++--- amiga/gui.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index 53a6aa246..01f149c31 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1833,7 +1833,7 @@ void ami_handle_msg(void) struct DiskObject *dobj; struct bitmap *bm; - bm = urldb_get_thumbnail(nsurl_access(hlcache_handle_get_url(gwin->bw->current_content))); + bm = urldb_get_thumbnail(hlcache_handle_get_url(gwin->bw->current_content)); if(!bm) bm = content_get_bitmap(gwin->bw->current_content); gwin->dobj = amiga_icon_from_bitmap(bm); amiga_icon_superimpose_favicon_internal(gwin->bw->window->favicon, @@ -4111,7 +4111,7 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg /* return the text box at posn x,y in window coordinates x,y are updated to be document co-ordinates */ -bool *ami_text_box_at_point(struct gui_window_2 *gwin, ULONG *x, ULONG *y) +bool ami_text_box_at_point(struct gui_window_2 *gwin, ULONG *x, ULONG *y) { struct IBox *bbox; ULONG xs,ys,width,height; @@ -4130,7 +4130,7 @@ bool *ami_text_box_at_point(struct gui_window_2 *gwin, ULONG *x, ULONG *y) width=bbox->Width; height=bbox->Height; - browser_window_get_contextual_content(gwin->bw, x, y, &data); + browser_window_get_contextual_content(gwin->bw, *x, *y, &data); if (data.form_features == CTX_FORM_TEXT) return true; diff --git a/amiga/gui.h b/amiga/gui.h index 498e2707e..181bd4f3b 100755 --- a/amiga/gui.h +++ b/amiga/gui.h @@ -143,7 +143,7 @@ void ami_do_redraw_limits(struct gui_window *g, struct browser_window *bw, int x0, int y0, int x1, int y1); STRPTR ami_locale_langs(void); int ami_key_to_nskey(ULONG keycode, struct InputEvent *ie); -bool *ami_text_box_at_point(struct gui_window_2 *gwin, ULONG *x, ULONG *y); +bool ami_text_box_at_point(struct gui_window_2 *gwin, ULONG *x, ULONG *y); BOOL ami_gadget_hit(Object *obj, int x, int y); void ami_gui_history(struct gui_window_2 *gwin, bool back); -- cgit v1.2.3