mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 01:30:03 +00:00
Fix NQD_bitblt_hook() to perform sign check correctly
This commit is contained in:
parent
bc13355b57
commit
75f3bdea68
@ -378,9 +378,9 @@ bool NQD_bitblt_hook(uint32 p)
|
||||
ReadMacInt32(p + 0x130) == 0 &&
|
||||
ReadMacInt32(p + acclSrcPixelSize) >= 8 &&
|
||||
ReadMacInt32(p + acclSrcPixelSize) == ReadMacInt32(p + acclDestPixelSize) &&
|
||||
(ReadMacInt32(p + acclSrcRowBytes) ^ ReadMacInt32(p + acclDestRowBytes)) >= 0 && // same sign?
|
||||
ReadMacInt32(p + acclTransferMode) == 0 && // srcCopy?
|
||||
ReadMacInt32(p + 0x15c) > 0) {
|
||||
(int32)(ReadMacInt32(p + acclSrcRowBytes) ^ ReadMacInt32(p + acclDestRowBytes)) >= 0 && // same sign?
|
||||
ReadMacInt32(p + acclTransferMode) == 0 && // srcCopy?
|
||||
(int32)ReadMacInt32(p + 0x15c) > 0) {
|
||||
|
||||
// Yes, set function pointer
|
||||
WriteMacInt32(p + acclDrawProc, NativeTVECT(NATIVE_BITBLT));
|
||||
|
Loading…
x
Reference in New Issue
Block a user