Added a check for single buffered mode when reporting available HW acceleration, because it clearly won't work in double buffered mode.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12737 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-05-19 17:39:58 +00:00
parent 25500bdfd9
commit 9f602781bf

View File

@ -515,12 +515,14 @@ AccelerantHWInterface::AvailableHWAcceleration() const
{
uint32 flags = 0;
if (fAccScreenBlit)
flags |= HW_ACC_COPY_REGION;
if (fAccFillRect)
flags |= HW_ACC_FILL_REGION;
if (fAccInvertRect)
flags |= HW_ACC_INVERT_REGION;
if (!IsDoubleBuffered()) {
if (fAccScreenBlit)
flags |= HW_ACC_COPY_REGION;
if (fAccFillRect)
flags |= HW_ACC_FILL_REGION;
if (fAccInvertRect)
flags |= HW_ACC_INVERT_REGION;
}
return flags;
}