diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-28 00:59:39 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-28 00:59:39 +0000 |
commit | f6b3442823313516d85be1d1f0e0c9e1b3e1f2e8 (patch) | |
tree | 4316be33276c64dfbe9edc6e55da9ae26620e860 /riscos/textarea.c | |
parent | 35a0b2c9104c08c0288cc8d11206805b6af26aaa (diff) | |
download | netsurf-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.c | 5 |
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", |