diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-28 19:19:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-28 19:19:05 +0000 |
commit | ce1099877654cddb643df0d84425d731e18b6957 (patch) | |
tree | 0dfcf7a59988ffd5dfb8c6a6b181df266d848143 /riscos/artworks.c | |
parent | 9badebaf4e03e2ad25f2f585107b946e67c852f3 (diff) | |
download | netsurf-ce1099877654cddb643df0d84425d731e18b6957.tar.gz netsurf-ce1099877654cddb643df0d84425d731e18b6957.tar.bz2 |
More aliasing
svn path=/trunk/netsurf/; revision=6973
Diffstat (limited to 'riscos/artworks.c')
-rw-r--r-- | riscos/artworks.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/riscos/artworks.c b/riscos/artworks.c index 7847daa63..56cbcc482 100644 --- a/riscos/artworks.c +++ b/riscos/artworks.c @@ -36,6 +36,7 @@ #include "content/content.h" #include "riscos/artworks.h" #include "riscos/gui.h" +#include "riscos/wimputils.h" #include "utils/utils.h" #include "utils/messages.h" #include "utils/log.h" @@ -224,11 +225,13 @@ bool artworks_redraw(struct content *c, int x, int y, int clip_x0, int clip_y0, int clip_x1, int clip_y1, float scale, colour background_colour) { - const os_VDU_VAR_LIST(4) vars = { - { os_MODEVAR_XEIG_FACTOR, - os_MODEVAR_YEIG_FACTOR, - os_MODEVAR_LOG2_BPP, - os_VDUVAR_END_LIST } + static const ns_os_vdu_var_list vars = { + os_MODEVAR_XEIG_FACTOR, + { + os_MODEVAR_YEIG_FACTOR, + os_MODEVAR_LOG2_BPP, + os_VDUVAR_END_LIST + } }; struct awinfo_block info; os_error *error; @@ -281,7 +284,7 @@ bool artworks_redraw(struct content *c, int x, int y, info.print_handle = 0; info.bgcolour = 0x20000000 | background_colour; - error = xos_read_vdu_variables((os_vdu_var_list*)&vars, vals); + error = xos_read_vdu_variables(PTR_OS_VDU_VAR_LIST(&vars), vals); if (error) { LOG(("xos_read_vdu_variables: 0x%x: %s", error->errnum, error->errmess)); |