From f6b3442823313516d85be1d1f0e0c9e1b3e1f2e8 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 28 Mar 2009 00:59:39 +0000 Subject: Aliasing fixes. svn path=/trunk/netsurf/; revision=6953 --- riscos/textarea.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/textarea.c b/riscos/textarea.c index eaa6961b9..365aa17a8 100644 --- a/riscos/textarea.c +++ b/riscos/textarea.c @@ -37,6 +37,7 @@ #include "riscos/ucstables.h" #include "riscos/wimp.h" #include "riscos/wimp_event.h" +#include "riscos/wimputils.h" #include "utils/log.h" #include "utils/utf8.h" @@ -274,7 +275,7 @@ bool textarea_update(uintptr_t self) } /* and open the window */ - error = xwimp_open_window_nested((wimp_open *)&state, ta->parent, + error = xwimp_open_window_nested(PTR_WIMP_OPEN(&state), ta->parent, wimp_CHILD_LINKS_PARENT_VISIBLE_BOTTOM_OR_LEFT << wimp_CHILD_XORIGIN_SHIFT | wimp_CHILD_LINKS_PARENT_VISIBLE_TOP_OR_RIGHT @@ -864,7 +865,7 @@ void textarea_reflow(struct text_area *ta, unsigned int line) state.visible.x1 -= vscroll_width; /* and reopen window */ - error = xwimp_open_window_nested((wimp_open *)&state, + error = xwimp_open_window_nested(PTR_WIMP_OPEN(&state), parent, linkage); if (error) { LOG(("xwimp_open_window_nested: 0x%x: %s", -- cgit v1.2.3