From 1cb60828ea8e529a58b4a92f2915e6236595cf5d Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 31 Aug 2011 19:53:34 +0000 Subject: Don't refresh buttons when enabling/disabling. Fixes bitmap alpha/overprinting problem (thanks to Simon Archer) svn path=/trunk/netsurf/; revision=12694 --- amiga/gui.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index f2ceed9b1..ad6d419a5 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2237,25 +2237,25 @@ void ami_update_buttons(struct gui_window_2 *gwin) } } - RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_BACK],gwin->win,NULL, + SetGadgetAttrs((struct Gadget *)gwin->objects[GID_BACK],gwin->win,NULL, GA_Disabled,back, TAG_DONE); - RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_FORWARD],gwin->win,NULL, + SetGadgetAttrs((struct Gadget *)gwin->objects[GID_FORWARD],gwin->win,NULL, GA_Disabled,forward, TAG_DONE); - RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_RELOAD],gwin->win,NULL, + SetGadgetAttrs((struct Gadget *)gwin->objects[GID_RELOAD],gwin->win,NULL, GA_Disabled,reload, TAG_DONE); - RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_STOP],gwin->win,NULL, + SetGadgetAttrs((struct Gadget *)gwin->objects[GID_STOP],gwin->win,NULL, GA_Disabled,stop, TAG_DONE); if((gwin->tabs) && (ClickTabBase->lib_Version < 53)) { - RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_CLOSETAB],gwin->win,NULL, + SetGadgetAttrs((struct Gadget *)gwin->objects[GID_CLOSETAB],gwin->win,NULL, GA_Disabled,tabclose, TAG_DONE); } -- cgit v1.2.3