mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Remove regions, add framing (fixes mirrors)
This commit is contained in:
@@ -135,7 +135,6 @@ void AddRectToWorkRectsWhole (Rect *theRect)
|
||||
|
||||
void DrawReflection (gliderPtr thisGlider, Boolean oneOrTwo)
|
||||
{
|
||||
RgnHandle wasClip;
|
||||
Rect src, dest;
|
||||
short which;
|
||||
|
||||
@@ -150,10 +149,6 @@ void DrawReflection (gliderPtr thisGlider, Boolean oneOrTwo)
|
||||
dest = thisGlider->dest;
|
||||
QOffsetRect(&dest, playOriginH - 20, playOriginV - 16);
|
||||
|
||||
wasClip = NewRgn();
|
||||
if (wasClip == nil)
|
||||
return;
|
||||
|
||||
SetPort((GrafPtr)workSrcMap);
|
||||
|
||||
long numMirrorRects = GetHandleSize(reinterpret_cast<Handle>(mirrorRects)) / sizeof(Rect);
|
||||
@@ -184,8 +179,6 @@ void DrawReflection (gliderPtr thisGlider, Boolean oneOrTwo)
|
||||
}
|
||||
}
|
||||
|
||||
DisposeRgn(wasClip);
|
||||
|
||||
src =thisGlider->whole;
|
||||
QOffsetRect(&src, playOriginH - 20, playOriginV - 16);
|
||||
AddRectToWorkRects(&src);
|
||||
|
||||
Reference in New Issue
Block a user