summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2013-06-01 16:05:51 +0100
committerVincent Sanders <vince@kyllikki.org>2013-06-01 16:09:26 +0100
commit9bd296987684788c32dd346b2d67671ed5dfe7a0 (patch)
tree1179c78764d001815037472551d2603ec5b7fa45 /amiga
parent31e3b27fad73dc5424017d55f918b383502d5d0e (diff)
downloadnetsurf-9bd296987684788c32dd346b2d67671ed5dfe7a0.tar.gz
netsurf-9bd296987684788c32dd346b2d67671ed5dfe7a0.tar.bz2
amiga is the only user of the very odd usage of the options API
Diffstat (limited to 'amiga')
-rw-r--r--amiga/gui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 4ec0ea1d7..a26c0f7f7 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -196,6 +196,12 @@ static void ami_gui_window_update_box_deferred(struct gui_window *g, bool draw);
static void ami_do_redraw(struct gui_window_2 *g);
static void ami_schedule_redraw_remove(struct gui_window_2 *gwin);
+/* accessors for default options - user option is updated if it is set as per default */
+#define nsoption_default_set_int(OPTION, VALUE) \
+ if (nsoptions_default[NSOPTION_##OPTION].value.i == nsoptions[NSOPTION_##OPTION].value.i) \
+ nsoptions[NSOPTION_##OPTION].value.i = VALUE; \
+ nsoptions_default[NSOPTION_##OPTION].value.i = VALUE
+
STRPTR ami_locale_langs(void)
{
struct Locale *locale;