From 7804b9b4a4f2a03ada72c8fdc6e31722df580b17 Mon Sep 17 00:00:00 2001 From: mazze Date: Fri, 9 Jan 2009 13:46:59 +0000 Subject: [PATCH] Bugfix for: http://sourceforge.net/tracker/index.php?func=detail&aid=897083&group_id=43586&atid=439463 http://sourceforge.net/tracker/index.php?func=detail&aid=1895179&group_id=43586&atid=439463 http://sourceforge.net/tracker/index.php?func=detail&aid=1985755&group_id=43586&atid=439463 (A group wasn't immediately redrawn when it was disabled with set(grp, MUIA_Disabled, TRUE) after the window was already open.) Commented out optimisation which should prevent drawing of the childs of a disabled group. Additionally: changed ULONG to IPTR for X86-64 git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@30249 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/libs/muimaster/mui_redraw.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/workbench/libs/muimaster/mui_redraw.c b/workbench/libs/muimaster/mui_redraw.c index af52771ac..e85b98007 100644 --- a/workbench/libs/muimaster/mui_redraw.c +++ b/workbench/libs/muimaster/mui_redraw.c @@ -54,7 +54,7 @@ AROS_LIBFUNC_INIT APTR clip = (APTR)-1; - ULONG disabled; + IPTR disabled; if (!(_flags(obj) & MADF_CANDRAW)) return; @@ -141,15 +141,21 @@ if (get(obj, MUIA_Disabled, &disabled)) { +#if 0 + /* + Commented out, because group childs were drawn wrongly + when they have been disabled while window is open. + */ if (_parent(obj)) { - ULONG parentDisabled; + IPTR parentDisabled; if (get(_parent(obj), MUIA_Disabled, &parentDisabled)) { /* Let the parent draw the pattern... */ if (parentDisabled) disabled = FALSE; } } +#endif if (disabled) { @@ -241,4 +247,4 @@ AROS_LIBFUNC_EXIT - } /* MUIA_Redraw */ +} /* MUIA_Redraw */ -- 2.11.4.GIT