software/MFrame/commonFunctions/commonFunctions.cpp
// DrawTranslucentRect(Rect* )
// draws a fake (checkerboard pattern) translucent rect using the foreground color
DrawTranslucentRect(Rect* )
draws a fake (checkerboard pattern) translucent rect using the foreground color
DrawTranslucentRect ( Rect * ) draws a fake ( checkerboard pattern ) translucent rect using the foreground color
void DrawTranslucentRect(Rect* targetRect)
{
	int				oldMode;
	PixPatHandle	oldPattern;
	Pattern			gray;
	oldMode = GetPortPenMode(GetQDGlobalsThePort());
	oldPattern = PixPatHandle(NewHandle(sizeof(PixPat)));
	GetPortPenPixPat(GetQDGlobalsThePort(), oldPattern);
	PenMode(srcOr);
	PenPat(GetQDGlobalsGray(&gray));
	PaintRect(targetRect);
	SetPortPenMode(GetQDGlobalsThePort(), oldMode);
	SetPortPenPixPat(GetQDGlobalsThePort(), oldPattern);
	DisposeHandle(Handle(oldPattern));
}
void DrawTranslucentRect ( Rect * targetRect ) { int oldMode ; PixPatHandle oldPattern ; Pattern gray ; oldMode = GetPortPenMode ( GetQDGlobalsThePort ( ) ) ; oldPattern = PixPatHandle ( NewHandle ( sizeof ( PixPat ) ) ) ; GetPortPenPixPat ( GetQDGlobalsThePort ( ) , oldPattern ) ; PenMode ( srcOr ) ; PenPat ( GetQDGlobalsGray ( & gray ) ) ; PaintRect ( targetRect ) ; SetPortPenMode ( GetQDGlobalsThePort ( ) , oldMode ) ; SetPortPenPixPat ( GetQDGlobalsThePort ( ) , oldPattern ) ; DisposeHandle ( Handle ( oldPattern ) ) ; }
DrawTranslucentRect(Rect* )
draws a fake (checkerboard pattern) translucent rect using the foreground color
DrawTranslucentRect ( Rect * ) draws a fake ( checkerboard pattern ) translucent rect using the foreground color