Hack to fix building for R5. Should go away later.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27749 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-09-26 15:30:32 +00:00
parent b22c760c73
commit a3d8a94533
+11 -1
View File
@@ -6,7 +6,17 @@
#include <stdio.h>
// XXX: Hack for BeOS: REMOVE ME later
#ifndef __HAIKU__
#define private public
#define BitmapFlags(b) ((b)->fFlags)
#else
#define BitmapFlags(b) ((b)->Flags())
#endif
#include <Bitmap.h>
#ifndef __HAIKU__
#undef private
#endif
#include "Settings.h"
@@ -84,7 +94,7 @@ VideoView::SetBitmap(const BBitmap* bitmap)
// -> Window).
if (bitmap && LockLooperWithTimeout(10000) == B_OK) {
if (LockBitmap()) {
if (fOverlayMode || (bitmap->Flags() & B_BITMAP_WILL_OVERLAY)) {
if (fOverlayMode || (BitmapFlags(bitmap) & B_BITMAP_WILL_OVERLAY)) {
if (!fOverlayMode) {
// init overlay
rgb_color key;