Cleanup, add scanline mask builder

This commit is contained in:
elasota
2019-12-26 12:58:58 -05:00
parent b10dda4a54
commit c4e93b0ccf
61 changed files with 823 additions and 494 deletions

View File

@@ -126,9 +126,6 @@ void FindNewActiveRoomRect (void)
activeRoomVisible = false;
wasState = HGetState((Handle)thisHouse);
HLock((Handle)thisHouse);
for (i = 0; i < mapRoomsHigh; i++)
{
for (h = 0; h < mapRoomsWide; h++)
@@ -150,8 +147,6 @@ void FindNewActiveRoomRect (void)
}
}
HSetState((Handle)thisHouse, wasState);
if (activeRoomVisible)
{
activeRoomRect.right++;
@@ -211,9 +206,6 @@ void RedrawMapContents (void)
ClipRect(&newClip);
}
wasState = HGetState((Handle)thisHouse);
HLock((Handle)thisHouse);
for (i = 0; i < mapRoomsHigh; i++)
{
for (h = 0; h < mapRoomsWide; h++)
@@ -266,8 +258,6 @@ void RedrawMapContents (void)
}
}
HSetState((Handle)thisHouse, wasState);
ForeColor(blackColor);
PenNormal();