fix warnings

This commit is contained in:
Chris Young 2012-10-11 20:13:38 +01:00
parent e3cbd8aec6
commit a5bd3d112c
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);