diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-06-01 14:58:51 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-06-01 14:58:51 +0100 |
commit | fe78657b081c68d4e82ce0d526defaefbe1a0677 (patch) | |
tree | c65e201aab0486e5967adba8aa571aee7478ece4 | |
parent | 0bb08cc5d2a2c66b77c3ec19db244c57a270a009 (diff) | |
download | netsurf-fe78657b081c68d4e82ce0d526defaefbe1a0677.tar.gz netsurf-fe78657b081c68d4e82ce0d526defaefbe1a0677.tar.bz2 |
Use default macros for updating window size
-rw-r--r-- | amiga/gui.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 536981c56..eab208f34 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -445,15 +445,10 @@ colour_option_from_pen(struct nsoption_s *opts, static void ami_set_screen_defaults(struct Screen *scrn) { - if((nsoption_int(window_x) == 0) && - (nsoption_int(window_y) == 0) && - (nsoption_int(window_width) == 0) && - (nsoption_int(window_height) == 0)) { - nsoption_set_int(window_x, 0); - nsoption_set_int(window_y, scrn->BarHeight + 1); - nsoption_set_int(window_width, scrn->Width); - nsoption_set_int(window_height, scrn->Height - scrn->BarHeight - 1); - } + nsoption_default_set_int(window_x, 0); + nsoption_default_set_int(window_y, scrn->BarHeight + 1); + nsoption_default_set_int(window_width, scrn->Width); + nsoption_default_set_int(window_height, scrn->Height - scrn->BarHeight - 1); /* TODO: Update screen colour defaults here */ } |