I never get those right the first time

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15672 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-12-25 22:43:02 +00:00
parent 9d909e2556
commit 56a1266027
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ void
HWInterface::_AdoptDragBitmap(const ServerBitmap* bitmap, const BPoint& offset) HWInterface::_AdoptDragBitmap(const ServerBitmap* bitmap, const BPoint& offset)
{ {
// TODO: support other colorspaces/convert bitmap // TODO: support other colorspaces/convert bitmap
if (bitmap && (bitmap->ColorSpace() != B_RGB32 && bitmap->ColorSpace() != B_RGBA32)) { if (bitmap && !(bitmap->ColorSpace() == B_RGB32 || bitmap->ColorSpace() == B_RGBA32)) {
fprintf(stderr, "HWInterface::_AdoptDragBitmap() - bitmap has yet unsupported colorspace\n"); fprintf(stderr, "HWInterface::_AdoptDragBitmap() - bitmap has yet unsupported colorspace\n");
return; return;
} }