mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-21 00:31:50 +00:00
Fix if/else format.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
This commit is contained in:
parent
5f1b41eb42
commit
2e96512f26
@ -1116,8 +1116,7 @@ static bool patch_rom_classic(void)
|
|||||||
*wp = htons(MacScreenWidth / 8);
|
*wp = htons(MacScreenWidth / 8);
|
||||||
|
|
||||||
// cursor handling
|
// cursor handling
|
||||||
if (MacScreenWidth >= 1024)
|
if (MacScreenWidth >= 1024) {
|
||||||
{
|
|
||||||
// start to patch P_HideCursor routine
|
// start to patch P_HideCursor routine
|
||||||
wp = (uint16 *)(ROMBaseHost + 0x18dfe);
|
wp = (uint16 *)(ROMBaseHost + 0x18dfe);
|
||||||
*wp++ = htons(0x4eb9); /* JSR */
|
*wp++ = htons(0x4eb9); /* JSR */
|
||||||
@ -1140,8 +1139,7 @@ static bool patch_rom_classic(void)
|
|||||||
*patchwp++ = htons(0x4e75); /* RTS */
|
*patchwp++ = htons(0x4e75); /* RTS */
|
||||||
patchCodeBaseMac += 2;
|
patchCodeBaseMac += 2;
|
||||||
patchlp = (uint32 *)patchwp; // keep in sync
|
patchlp = (uint32 *)patchwp; // keep in sync
|
||||||
} else
|
} else {
|
||||||
{
|
|
||||||
// P_HideCursor
|
// P_HideCursor
|
||||||
wp = (uint16 *)(ROMBaseHost + 0x18e02);
|
wp = (uint16 *)(ROMBaseHost + 0x18e02);
|
||||||
*wp = htons(0x7000 + (MacScreenWidth / 8));
|
*wp = htons(0x7000 + (MacScreenWidth / 8));
|
||||||
@ -1156,8 +1154,7 @@ static bool patch_rom_classic(void)
|
|||||||
wp = (uint16 *)(ROMBaseHost + 0x18ea6);
|
wp = (uint16 *)(ROMBaseHost + 0x18ea6);
|
||||||
*wp = htons(MacScreenHeight);
|
*wp = htons(MacScreenHeight);
|
||||||
|
|
||||||
if (MacScreenWidth >= 1024)
|
if (MacScreenWidth >= 1024) {
|
||||||
{
|
|
||||||
// start to patch P_ShowCursor routine
|
// start to patch P_ShowCursor routine
|
||||||
wp = (uint16 *)(ROMBaseHost + 0x18ec4);
|
wp = (uint16 *)(ROMBaseHost + 0x18ec4);
|
||||||
*wp++ = htons(0x4eb9); /* JSR */
|
*wp++ = htons(0x4eb9); /* JSR */
|
||||||
@ -1182,8 +1179,7 @@ static bool patch_rom_classic(void)
|
|||||||
patchCodeBaseMac += 2;
|
patchCodeBaseMac += 2;
|
||||||
// keep in sync
|
// keep in sync
|
||||||
patchlp = (uint32 *)patchwp;
|
patchlp = (uint32 *)patchwp;
|
||||||
} else
|
} else {
|
||||||
{
|
|
||||||
wp = (uint16 *)(ROMBaseHost + 0x18ec4);
|
wp = (uint16 *)(ROMBaseHost + 0x18ec4);
|
||||||
*wp = htons(0x7A00 + (MacScreenWidth / 8));
|
*wp = htons(0x7A00 + (MacScreenWidth / 8));
|
||||||
}// end if (MacScreenWidth >= 1024)
|
}// end if (MacScreenWidth >= 1024)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user