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:
@@ -6,7 +6,17 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#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>
|
#include <Bitmap.h>
|
||||||
|
#ifndef __HAIKU__
|
||||||
|
#undef private
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
|
|
||||||
@@ -84,7 +94,7 @@ VideoView::SetBitmap(const BBitmap* bitmap)
|
|||||||
// -> Window).
|
// -> Window).
|
||||||
if (bitmap && LockLooperWithTimeout(10000) == B_OK) {
|
if (bitmap && LockLooperWithTimeout(10000) == B_OK) {
|
||||||
if (LockBitmap()) {
|
if (LockBitmap()) {
|
||||||
if (fOverlayMode || (bitmap->Flags() & B_BITMAP_WILL_OVERLAY)) {
|
if (fOverlayMode || (BitmapFlags(bitmap) & B_BITMAP_WILL_OVERLAY)) {
|
||||||
if (!fOverlayMode) {
|
if (!fOverlayMode) {
|
||||||
// init overlay
|
// init overlay
|
||||||
rgb_color key;
|
rgb_color key;
|
||||||
|
|||||||
Reference in New Issue
Block a user