From 33dda9c275a780226b9852f8d4c8b9584e4d29f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 11 Apr 2007 14:11:39 +0000 Subject: [PATCH] Fixed build under BeOS. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20652 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/icon/IconUtils.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libs/icon/IconUtils.cpp b/src/libs/icon/IconUtils.cpp index b4e4df6449..48f0e689cd 100644 --- a/src/libs/icon/IconUtils.cpp +++ b/src/libs/icon/IconUtils.cpp @@ -23,6 +23,10 @@ #include "IconRenderer.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 std::nothrow; @@ -72,8 +76,12 @@ BIconUtils::GetIcon(BNode* node, size, result); if (ret < B_OK) { // try to fallback to vector icon +#ifdef HAIKU_TARGET_PLATFORM_HAIKU BBitmap temp(result->Bounds(), B_BITMAP_NO_SERVER_LINK, B_RGBA32); +#else + BBitmap temp(result->Bounds(), B_RGBA32); +#endif ret = temp.InitCheck(); if (ret < B_OK) break;