From a3d8a945334a1af570f1925050d0cd01776be5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 26 Sep 2008 15:30:32 +0000 Subject: [PATCH] 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 --- src/apps/mediaplayer/VideoView.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/VideoView.cpp b/src/apps/mediaplayer/VideoView.cpp index 83bca81968..145bc44f09 100644 --- a/src/apps/mediaplayer/VideoView.cpp +++ b/src/apps/mediaplayer/VideoView.cpp @@ -6,7 +6,17 @@ #include +// 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 +#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;