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

@@ -447,10 +447,7 @@ void DoRoomInfo (void)
ShowWindow(GetDialogWindow(roomInfoDialog));
DrawDefaultButton(roomInfoDialog);
wasState = HGetState((Handle)thisHouse);
HLock((Handle)thisHouse);
wasFirstRoom = ((*thisHouse)->firstRoom == thisRoomNumber);
HSetState((Handle)thisHouse, wasState);
SetDialogItemValue(roomInfoDialog, kRoomFirstCheck, (short)wasFirstRoom);
if (tempBack >= kUserBackground)
@@ -473,9 +470,7 @@ void DoRoomInfo (void)
PasStringCopyNum(tempStr, thisRoom->name, 27);
if (wasFirstRoom)
{
HLock((Handle)thisHouse);
(*thisHouse)->firstRoom = thisRoomNumber;
HUnlock((Handle)thisHouse);
}
thisRoom->background = tempBack;
if (tempBack < kUserBackground)