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