summaryrefslogtreecommitdiff
path: root/riscos/textarea.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-28 00:59:39 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-28 00:59:39 +0000
commitf6b3442823313516d85be1d1f0e0c9e1b3e1f2e8 (patch)
tree4316be33276c64dfbe9edc6e55da9ae26620e860 /riscos/textarea.c
parent35a0b2c9104c08c0288cc8d11206805b6af26aaa (diff)
downloadnetsurf-f6b3442823313516d85be1d1f0e0c9e1b3e1f2e8.tar.gz
netsurf-f6b3442823313516d85be1d1f0e0c9e1b3e1f2e8.tar.bz2
Aliasing fixes.
svn path=/trunk/netsurf/; revision=6953
Diffstat (limited to 'riscos/textarea.c')
-rw-r--r--riscos/textarea.c5
1 files changed, 3 insertions, 2 deletions
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",