* Tracker makes sure certain mimetypes exist and copies icons from
its resources -> now also the vector icons (thanks Jérôme for the hint) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18806 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -160,6 +160,23 @@ BImageResources::GetIconResource(int32 id, icon_size size, BBitmap *dest) const
|
||||
return ret;
|
||||
}
|
||||
|
||||
status_t
|
||||
BImageResources::GetIconResource(int32 id, const uint8** iconData,
|
||||
size_t* iconSize) const
|
||||
{
|
||||
// try to load vector icon data from resources
|
||||
size_t length = 0;
|
||||
const void* data = LoadResource(B_RAW_TYPE, id, &length);
|
||||
|
||||
if (!data)
|
||||
return B_ERROR;
|
||||
|
||||
*iconData = (const uint8*)data;
|
||||
*iconSize = length;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
image_id
|
||||
BImageResources::find_image(void *memAddr) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user