1 |
|
/* |
2 |
|
* gfxaccel.cpp - Generic Native QuickDraw acceleration |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Marc Hellwig and Christian Bauer |
4 |
> |
* SheepShaver (C) 1997-2005 Marc Hellwig and Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
378 |
|
ReadMacInt32(p + 0x130) == 0 && |
379 |
|
ReadMacInt32(p + acclSrcPixelSize) >= 8 && |
380 |
|
ReadMacInt32(p + acclSrcPixelSize) == ReadMacInt32(p + acclDestPixelSize) && |
381 |
< |
(ReadMacInt32(p + acclSrcRowBytes) ^ ReadMacInt32(p + acclDestRowBytes)) >= 0 && // same sign? |
382 |
< |
ReadMacInt32(p + acclTransferMode) == 0 && // srcCopy? |
383 |
< |
ReadMacInt32(p + 0x15c) > 0) { |
381 |
> |
(int32)(ReadMacInt32(p + acclSrcRowBytes) ^ ReadMacInt32(p + acclDestRowBytes)) >= 0 && // same sign? |
382 |
> |
ReadMacInt32(p + acclTransferMode) == 0 && // srcCopy? |
383 |
> |
(int32)ReadMacInt32(p + 0x15c) > 0) { |
384 |
|
|
385 |
|
// Yes, set function pointer |
386 |
|
WriteMacInt32(p + acclDrawProc, NativeTVECT(NATIVE_BITBLT)); |