mmlr + stippi:
Use B_RGBA32 if you mean that instead of B_RGB32. The IconUtils could be changed to either refuse B_RGB32 or give them an invalid alpha channel with just B_TRANSPARENT_MAGIC_RGBA32. That would make that mistake more obvious. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26437 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f01b70d098
commit
4c28a7375d
@ -149,7 +149,7 @@ NetworkStatusView::_UpdateBitmaps()
|
|||||||
data = resources.LoadResource(B_VECTOR_ICON_TYPE,
|
data = resources.LoadResource(B_VECTOR_ICON_TYPE,
|
||||||
kNetworkStatusNoDevice + i, &size);
|
kNetworkStatusNoDevice + i, &size);
|
||||||
if (data != NULL) {
|
if (data != NULL) {
|
||||||
BBitmap* icon = new BBitmap(Bounds(), B_RGB32);
|
BBitmap* icon = new BBitmap(Bounds(), B_RGBA32);
|
||||||
if (icon->InitCheck() == B_OK
|
if (icon->InitCheck() == B_OK
|
||||||
&& BIconUtils::GetVectorIcon((const uint8 *)data,
|
&& BIconUtils::GetVectorIcon((const uint8 *)data,
|
||||||
size, icon) == B_OK) {
|
size, icon) == B_OK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user