diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2003-12-27 00:11:57 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2003-12-27 00:11:57 +0000 |
commit | 59fb052818656e74162d7f026f7089ec42c1e8a0 (patch) | |
tree | e5b8bf21e2201adf5170f2bfde49ae4423902f63 /riscos/menus.c | |
parent | 2363d8f5af7302924a0ce3608d971f5594710f3f (diff) | |
download | netsurf-59fb052818656e74162d7f026f7089ec42c1e8a0.tar.gz netsurf-59fb052818656e74162d7f026f7089ec42c1e8a0.tar.bz2 |
[project @ 2003-12-27 00:11:57 by jmb]
Tidy code to reduce compiler warnings. htmlredraw.c and plugin.c produce
the most now. Hopefully I haven't broken anything ;)
svn path=/import/netsurf/; revision=451
Diffstat (limited to 'riscos/menus.c')
-rw-r--r-- | riscos/menus.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/riscos/menus.c b/riscos/menus.c index 12777ace3..78ec67db0 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -150,8 +150,11 @@ void ro_gui_create_menu(wimp_menu *menu, int x, int y, gui_window *g) void ro_gui_popup_menu(wimp_menu *menu, wimp_w w, wimp_i i) { - wimp_window_state state = { w }; - wimp_icon_state icon_state = { w, i }; + wimp_window_state state; + wimp_icon_state icon_state; + state.w = w; + icon_state.w = w; + icon_state.i = i; wimp_get_window_state(&state); wimp_get_icon_state(&icon_state); ro_gui_create_menu(menu, state.visible.x0 + icon_state.icon.extent.x1, @@ -245,7 +248,7 @@ void ro_gui_menu_selection(wimp_selection *selection) if (pointer.buttons == wimp_CLICK_ADJUST) { if (current_menu == combo_menu) - gui_gadget_combo(current_gui->data.browser.bw, current_gadget, current_menu_x, current_menu_y); + gui_gadget_combo(current_gui->data.browser.bw, current_gadget, (unsigned int)current_menu_x, (unsigned int)current_menu_y); else ro_gui_create_menu(current_menu, current_menu_x, current_menu_y, current_gui); } |