diff options
author | Vincent Sanders <vince@kyllikki.org> | 2013-05-28 18:59:50 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2013-05-28 19:09:47 +0100 |
commit | 9d00f63ff4fabdc7f446b51edfcb79719fd648a9 (patch) | |
tree | c799537e54bd2dfc741806ff96be5d7565f57436 | |
parent | cbe8d1c125b2f3ffa7693673f19d8efda3e6f333 (diff) | |
download | netsurf-9d00f63ff4fabdc7f446b51edfcb79719fd648a9.tar.gz netsurf-9d00f63ff4fabdc7f446b51edfcb79719fd648a9.tar.bz2 |
actually set the option we compute
-rw-r--r-- | riscos/gui.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 902aa7681..e409fbb3e 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -344,10 +344,13 @@ set_colour_from_wimp(struct nsoption_s *opts, LOG(("xwimp_read_palette: 0x%x: %s", error->errnum, error->errmess)); } else { - def_colour = palette.entries[wimp]; + /* entries are in B0G0R0LL */ + def_colour = palette.entries[wimp] >> 8; } - return def_colour; + opts[option].value.c = def_colour; + + return NSERROR_OK; } /** |