ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/gfxaccel.cpp
(Generate patch)

Comparing SheepShaver/src/gfxaccel.cpp (file contents):
Revision 1.2 by gbeauche, 2004-11-13T14:09:15Z vs.
Revision 1.4 by gbeauche, 2006-05-07T10:49:48Z

# Line 1 | Line 1
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
# Line 378 | Line 378 | bool NQD_bitblt_hook(uint32 p)
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));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines