* in FillRegion(), check if the current drawing mode is B_OP_INVERT,
and then use hardware acceleration... found out this is what our BTextView is actually using, that's why it never used hardware acceleration for invert rect/region before. Have not tested this on real hardware yet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21843 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
90ad4da30d
commit
4971740e39
@ -853,6 +853,11 @@ DrawingEngine::FillRegion(BRegion& r)
|
||||
fSuspendSyncLevel == 0
|
||||
|| cursorTouched);
|
||||
doInSoftware = false;
|
||||
} else if (fAvailableHWAccleration & HW_ACC_INVERT_REGION
|
||||
&& fPainter->Pattern() == B_SOLID_HIGH
|
||||
&& fPainter->DrawingMode() == B_OP_INVERT) {
|
||||
r.IntersectWith(fPainter->ClippingRegion());
|
||||
fGraphicsCard->InvertRegion(r);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user