1
0
mirror of https://github.com/deadw00d/AROS.git synced 2026-01-12 00:09:02 +00:00

Added disabled-pattern

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@7512 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
hkiel
2000-03-05 22:34:17 +00:00
parent a92232a691
commit dd1b5af338

View File

@ -10,6 +10,7 @@
#include <proto/intuition.h>
#include <intuition/cghooks.h>
#include "intuition_intern.h"
#include <graphics/gfxmacros.h>
#include "gadgets.h"
void RefreshBoolGadget (struct Gadget * gadget, struct Window * window,
@ -173,6 +174,22 @@ void RefreshBoolGadget (struct Gadget * gadget, struct Window * window,
break;
} /* Highlight after contents have been drawn */
if ( gadget->Flags & GFLG_DISABLED )
{
UWORD pattern[] = { 0x8888, 0x2222 };
SetDrMd( rp, JAM1 );
SetAPen( rp, 1 );
SetAfPt( rp, pattern, 1);
/* render disable pattern */
RectFill(rp,
bbox.Left,
bbox.Top,
bbox.Left + bbox.Width - 1,
bbox.Top + bbox.Height - 1 );
}
ReleaseGIRPort(rp);
} /* RefreshBoolGadget */