From 6975360e1c3aeeb8607857c5f9c11158a12b76ea Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 13 Jan 2013 19:19:59 +0000 Subject: [PATCH] Disable compositing if simple refresh is enabled; set it back to "like WB" if simple refresh is disabled. --- amiga/gui_options.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/amiga/gui_options.c b/amiga/gui_options.c index e54ad15a6..d2478d67f 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -33,10 +33,11 @@ #include "amiga/font.h" #include "amiga/gui.h" #include "amiga/gui_options.h" +#include "amiga/theme.h" +#include "amiga/utf8.h" #include "utils/messages.h" #include "desktop/browser_private.h" #include "desktop/options.h" -#include "amiga/utf8.h" #include "desktop/searchweb.h" #include @@ -1582,10 +1583,12 @@ void ami_gui_opts_use(bool save) } GetAttr(GA_Selected,gow->objects[GID_OPTS_WIN_SIMPLE],(ULONG *)&data); - if (data) { + if ((data == TRUE) && (nsoption_bool(window_simple_refresh) == false)) { nsoption_set_bool(window_simple_refresh, true); - } else { + nsoption_set_int(screen_compositing, 0); + } else if ((data == FALSE) && (nsoption_bool(window_simple_refresh) == true)) { nsoption_set_bool(window_simple_refresh, false); + nsoption_set_int(screen_compositing, -1); } GetAttr(GETFILE_Drawer,gow->objects[GID_OPTS_THEME],(ULONG *)&data);