mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-16 04:50:32 +00:00
Fix mirrors on resize
This commit is contained in:
@@ -908,7 +908,7 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
|
|||||||
OffsetRectRoomRelative(&itsRect, neighbor);
|
OffsetRectRoomRelative(&itsRect, neighbor);
|
||||||
if ((SectRect(&itsRect, &testRect, &whoCares)) && isLit)
|
if ((SectRect(&itsRect, &testRect, &whoCares)) && isLit)
|
||||||
DrawMirror(&itsRect);
|
DrawMirror(&itsRect);
|
||||||
if ((neighbor == kCentralRoom) && (!redraw))
|
if (neighbor == kCentralRoom)
|
||||||
{
|
{
|
||||||
InsetRect(&itsRect, 4, 4);
|
InsetRect(&itsRect, 4, 4);
|
||||||
AddToMirrorRegion(&itsRect);
|
AddToMirrorRegion(&itsRect);
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ void ResetLocale (Boolean soft)
|
|||||||
ZeroFlamesAndTheLike();
|
ZeroFlamesAndTheLike();
|
||||||
ZeroDinahs();
|
ZeroDinahs();
|
||||||
KillAllBands();
|
KillAllBands();
|
||||||
ZeroMirrorRegion();
|
|
||||||
ZeroTriggers();
|
ZeroTriggers();
|
||||||
numTempManholes = 0;
|
numTempManholes = 0;
|
||||||
FlushAnyTriggerPlaying();
|
FlushAnyTriggerPlaying();
|
||||||
@@ -71,6 +70,8 @@ void ResetLocale (Boolean soft)
|
|||||||
ListAllLocalObjects();
|
ListAllLocalObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ZeroMirrorRegion();
|
||||||
|
|
||||||
takingTheStairs = false;
|
takingTheStairs = false;
|
||||||
|
|
||||||
DrawSurface *wasCPort = GetGraphicsPort();
|
DrawSurface *wasCPort = GetGraphicsPort();
|
||||||
|
|||||||
Reference in New Issue
Block a user