Removed the check for B_SUPPORTS_OVERLAY in display_mode on bitmap creation - the

current display_mode doesn't matter, only the one where the overlay is shown later
does.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17197 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-04-21 21:19:15 +00:00
parent 68bf2de593
commit aca37fccb5

View File

@ -715,13 +715,10 @@ bool
AccelerantHWInterface::CheckOverlayRestrictions(int32 width, int32 height,
color_space colorSpace)
{
// check if the current display mode supports overlay
if (fAccOverlaySupportedSpaces == NULL
|| fAccGetOverlayConstraints == NULL
|| fAccAllocateOverlayBuffer == NULL
|| fAccReleaseOverlayBuffer == NULL
|| (fDisplayMode.flags & B_SUPPORTS_OVERLAYS) == 0)
|| fAccReleaseOverlayBuffer == NULL)
return false;
// Note: we can't really check the size of the overlay upfront - we