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:
@@ -906,7 +906,7 @@ BAppFileInfo::SetIconForType(const char *type, const BBitmap *icon,
|
|||||||
if (icon) {
|
if (icon) {
|
||||||
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
||||||
if (otherColorSpace) {
|
if (otherColorSpace) {
|
||||||
BBitmap bitmap(bounds, B_CMAP8);
|
BBitmap bitmap(bounds, B_BITMAP_NO_SERVER_LINK, B_CMAP8);
|
||||||
error = bitmap.InitCheck();
|
error = bitmap.InitCheck();
|
||||||
if (error == B_OK)
|
if (error == B_OK)
|
||||||
error = bitmap.ImportBits(icon);
|
error = bitmap.ImportBits(icon);
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ BNodeInfo::SetIcon(const BBitmap *icon, icon_size k)
|
|||||||
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
||||||
ssize_t written = 0;
|
ssize_t written = 0;
|
||||||
if (otherColorSpace) {
|
if (otherColorSpace) {
|
||||||
BBitmap bitmap(bounds, B_CMAP8);
|
BBitmap bitmap(bounds, B_BITMAP_NO_SERVER_LINK, B_CMAP8);
|
||||||
error = bitmap.InitCheck();
|
error = bitmap.InitCheck();
|
||||||
if (error == B_OK)
|
if (error == B_OK)
|
||||||
error = bitmap.ImportBits(icon);
|
error = bitmap.ImportBits(icon);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ CreateAppMetaMimeThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
|
|||||||
BMimeType mime;
|
BMimeType mime;
|
||||||
BPath path;
|
BPath path;
|
||||||
attr_info info;
|
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;
|
BNode typeNode;
|
||||||
|
|
||||||
if (!err)
|
if (!err)
|
||||||
|
|||||||
@@ -390,7 +390,8 @@ get_icon_data(const BBitmap *icon, icon_size which, void **data, int32 *dataSize
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
||||||
if (otherColorSpace) {
|
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)
|
if (!icon8)
|
||||||
err = B_NO_MEMORY;
|
err = B_NO_MEMORY;
|
||||||
if (!err)
|
if (!err)
|
||||||
|
|||||||
Reference in New Issue
Block a user