From fe78657b081c68d4e82ce0d526defaefbe1a0677 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 1 Jun 2013 14:58:51 +0100 Subject: Use default macros for updating window size --- amiga/gui.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'amiga/gui.c') 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 */ } -- cgit v1.2.3