Fixed build under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20652 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -23,6 +23,10 @@
|
|||||||
#include "IconRenderer.h"
|
#include "IconRenderer.h"
|
||||||
#include "FlatIconImporter.h"
|
#include "FlatIconImporter.h"
|
||||||
|
|
||||||
|
#ifndef HAIKU_TARGET_PLATFORM_HAIKU
|
||||||
|
# define B_MINI_ICON_TYPE 'MICN'
|
||||||
|
# define B_LARGE_ICON_TYPE 'ICON'
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace BPrivate::Icon;
|
using namespace BPrivate::Icon;
|
||||||
using std::nothrow;
|
using std::nothrow;
|
||||||
@@ -72,8 +76,12 @@ BIconUtils::GetIcon(BNode* node,
|
|||||||
size, result);
|
size, result);
|
||||||
if (ret < B_OK) {
|
if (ret < B_OK) {
|
||||||
// try to fallback to vector icon
|
// try to fallback to vector icon
|
||||||
|
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
|
||||||
BBitmap temp(result->Bounds(),
|
BBitmap temp(result->Bounds(),
|
||||||
B_BITMAP_NO_SERVER_LINK, B_RGBA32);
|
B_BITMAP_NO_SERVER_LINK, B_RGBA32);
|
||||||
|
#else
|
||||||
|
BBitmap temp(result->Bounds(), B_RGBA32);
|
||||||
|
#endif
|
||||||
ret = temp.InitCheck();
|
ret = temp.InitCheck();
|
||||||
if (ret < B_OK)
|
if (ret < B_OK)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user