We use B_BITMAP_NO_SERVER_LINK BBitmaps internally now. This should remove the only app_server dependency the registrar has before shutdown.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13307 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-06-28 11:54:48 +00:00
parent 07b6630b86
commit 290bc091c7
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -906,7 +906,7 @@ BAppFileInfo::SetIconForType(const char *type, const BBitmap *icon,
if (icon) {
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
if (otherColorSpace) {
BBitmap bitmap(bounds, B_CMAP8);
BBitmap bitmap(bounds, B_BITMAP_NO_SERVER_LINK, B_CMAP8);
error = bitmap.InitCheck();
if (error == B_OK)
error = bitmap.ImportBits(icon);
+1 -1
View File
@@ -356,7 +356,7 @@ BNodeInfo::SetIcon(const BBitmap *icon, icon_size k)
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
ssize_t written = 0;
if (otherColorSpace) {
BBitmap bitmap(bounds, B_CMAP8);
BBitmap bitmap(bounds, B_BITMAP_NO_SERVER_LINK, B_CMAP8);
error = bitmap.InitCheck();
if (error == B_OK)
error = bitmap.ImportBits(icon);
@@ -38,7 +38,7 @@ CreateAppMetaMimeThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
BMimeType mime;
BPath path;
attr_info info;
BBitmap miniIcon(BRect(0,0,15,15), B_CMAP8);
BBitmap miniIcon(BRect(0,0,15,15), B_BITMAP_NO_SERVER_LINK, B_CMAP8);
BNode typeNode;
if (!err)
+2 -1
View File
@@ -390,7 +390,8 @@ get_icon_data(const BBitmap *icon, icon_size which, void **data, int32 *dataSize
if (!err) {
otherColorSpace = (icon->ColorSpace() != B_CMAP8);
if (otherColorSpace) {
icon8 = new(std::nothrow) BBitmap(bounds, B_CMAP8);
icon8 = new(std::nothrow) BBitmap(bounds, B_BITMAP_NO_SERVER_LINK,
B_CMAP8);
if (!icon8)
err = B_NO_MEMORY;
if (!err)