summaryrefslogtreecommitdiff
path: root/riscos/url_complete.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-27 17:55:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-27 17:55:58 +0000
commitac6cc0e4a426fa15467485650337bf2963186e0f (patch)
tree28421d78a718146e014a4c384b9ba520fcbc44fe /riscos/url_complete.c
parentfbec0d96c9fbbe830d20b7076282683034181ce5 (diff)
downloadnetsurf-ac6cc0e4a426fa15467485650337bf2963186e0f.tar.gz
netsurf-ac6cc0e4a426fa15467485650337bf2963186e0f.tar.bz2
More permitted aliasing
svn path=/trunk/netsurf/; revision=6947
Diffstat (limited to 'riscos/url_complete.c')
-rw-r--r--riscos/url_complete.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/riscos/url_complete.c b/riscos/url_complete.c
index 13b489e8a..81600f262 100644
--- a/riscos/url_complete.c
+++ b/riscos/url_complete.c
@@ -35,6 +35,7 @@
#include "riscos/url_complete.h"
#include "riscos/wimp.h"
#include "riscos/wimp_event.h"
+#include "riscos/wimputils.h"
#include "utils/utils.h"
#define MAXIMUM_VISIBLE_LINES 7
@@ -202,7 +203,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, uint32_t key)
return false;
}
url_complete_matches_reset = true;
- ro_gui_url_complete_resize(g, (wimp_open *)&state);
+ ro_gui_url_complete_resize(g, PTR_WIMP_OPEN(&state));
url_complete_matches_reset = false;
/* redraw the relevant bits of the window */
@@ -325,7 +326,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, uint32_t key)
state.yscroll =
-((url_complete_matches_selection + 1) * 44) + height;
- error = xwimp_open_window((wimp_open *)(&state));
+ error = xwimp_open_window(PTR_WIMP_OPEN(&state));
if (error) {
LOG(("xwimp_open_window: 0x%x: %s",
error->errnum, error->errmess));