amiga is the only user of the very odd usage of the options API

This commit is contained in:
Vincent Sanders 2013-06-01 16:05:51 +01:00
parent 31e3b27fad
commit 9bd2969876
2 changed files with 6 additions and 11 deletions

View File

@ -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;

View File

@ -270,15 +270,4 @@ int nsoption_snoptionf(char *string, size_t size, enum nsoption_e option, const
} \
} while (0)
/* 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
#define nsoption_default_set_colour(OPTION, VALUE) \
if (nsoptions_default[NSOPTION_##OPTION].value.c == nsoptions[NSOPTION_##OPTION].value.c) \
nsoptions[NSOPTION_##OPTION].value.c = VALUE; \
nsoptions_default[NSOPTION_##OPTION].value.c = VALUE
#endif