mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Adjusted Mac Plus graphic censor, just cover up the brand line for now.
This commit is contained in:
@@ -400,23 +400,10 @@ void HandleMacPlus (short who)
|
||||
if (!IsMacPlusSoundBanned())
|
||||
PlayPrioritySound(kMacBeepSound, kMacBeepPriority);
|
||||
|
||||
if (IsMacPlusGraphicBanned())
|
||||
{
|
||||
CGraf *oldPort = GetGraphicsPort();
|
||||
SetGraphicsPort(backSrcMap);
|
||||
|
||||
ForeColor(whiteColor);
|
||||
PaintRect(&dinahs[who].dest);
|
||||
|
||||
SetGraphicsPort(oldPort);
|
||||
}
|
||||
else
|
||||
{
|
||||
CopyBits((BitMap *)*GetGWorldPixMap(applianceSrcMap),
|
||||
(BitMap *)*GetGWorldPixMap(backSrcMap),
|
||||
&plusScreen2, &dinahs[who].dest,
|
||||
srcCopy, nil);
|
||||
}
|
||||
CopyBits((BitMap *)*GetGWorldPixMap(applianceSrcMap),
|
||||
(BitMap *)*GetGWorldPixMap(backSrcMap),
|
||||
&plusScreen2, &dinahs[who].dest,
|
||||
srcCopy, nil);
|
||||
|
||||
AddRectToBackRects(&dinahs[who].dest);
|
||||
}
|
||||
|
@@ -602,18 +602,6 @@ void DrawMacPlus (Rect *theRect, Boolean isOn, Boolean isLit)
|
||||
{
|
||||
Rect screen;
|
||||
|
||||
if (IsMacPlusGraphicBanned())
|
||||
{
|
||||
CGraf *wasGraph = GetGraphicsPort();
|
||||
SetGraphicsPort(backSrcMap);
|
||||
|
||||
ForeColor(blackColor);
|
||||
PaintRect(theRect);
|
||||
|
||||
SetGraphicsPort(wasGraph);
|
||||
return;
|
||||
}
|
||||
|
||||
if (isLit)
|
||||
{
|
||||
CopyMask((BitMap *)*GetGWorldPixMap(applianceSrcMap),
|
||||
@@ -637,6 +625,30 @@ void DrawMacPlus (Rect *theRect, Boolean isOn, Boolean isLit)
|
||||
(BitMap *)*GetGWorldPixMap(backSrcMap),
|
||||
&plusScreen1, &screen, srcCopy, nil);
|
||||
}
|
||||
|
||||
|
||||
if (IsMacPlusGraphicBanned())
|
||||
{
|
||||
CGraf *oldPort = GetGraphicsPort();
|
||||
SetGraphicsPort(backSrcMap);
|
||||
|
||||
RGBColor beigeColor;
|
||||
beigeColor.red = 255 * 0x0101;
|
||||
beigeColor.green = 255 * 0x0101;
|
||||
beigeColor.blue = 204 * 0x0101;
|
||||
|
||||
RGBForeColor(&beigeColor);
|
||||
|
||||
Rect paintOverRect = *theRect;
|
||||
paintOverRect.left += 8;
|
||||
paintOverRect.top += 35;
|
||||
paintOverRect.right = paintOverRect.left + 17;
|
||||
paintOverRect.bottom = paintOverRect.top + 6;
|
||||
|
||||
PaintRect(&paintOverRect);
|
||||
|
||||
SetGraphicsPort(oldPort);
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- DrawTV
|
||||
|
Reference in New Issue
Block a user