* fixed usage of hardware accelerated inverting, of course we shouldn't do it again in software after we have done it in hardware...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21921 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2007-08-13 09:26:27 +00:00
parent edac8f06a8
commit a2d6475360

View File

@ -860,12 +860,15 @@ DrawingEngine::FillRegion(BRegion& r)
fSuspendSyncLevel == 0
|| cursorTouched);
doInSoftware = false;
} else if (fAvailableHWAccleration & HW_ACC_INVERT_REGION
}
}
if (doInSoftware && fAvailableHWAccleration & HW_ACC_INVERT_REGION
&& fPainter->Pattern() == B_SOLID_HIGH
&& fPainter->DrawingMode() == B_OP_INVERT) {
r.IntersectWith(fPainter->ClippingRegion());
fGraphicsCard->InvertRegion(r);
}
doInSoftware = false;
}
if (doInSoftware) {