Ticket #890 (closed bug: fixed)

Opened 2 years ago

Last modified 23 months ago

[Deskbar] icons are broken for supertypes

Reported by: diver Owned by: stippi
Priority: normal Milestone: R1
Component: Kits/Application Kit Version: R1 development
Cc: axeld Blocked By:
Platform: All Blocking:

Description

comman line app have broken icons in Deskbar. To reproduce, launch top from tracker.

Change History

  Changed 2 years ago by axeld

  • owner changed from axeld to stippi

  Changed 2 years ago by johndrinkwater

  • summary changed from [Deskbar] cli icons are broken to [Deskbar] icons are broken for supertypes

Doesn't affect just CLI applications; anything without a custom icon that relies on the parent type's icon has this issue (like Playground)

follow-up: ↓ 4   Changed 2 years ago by jackburton

  • cc axeld added

I think I found the problem. TBarApp::AddTeam() uses BBitmap::SetBits() and passes B_RGB32 as colorspace parameter, but SetBits() interprets that as B_RGB24_BIG (to mimic R5's behaviour, AFAIK). Passing B_RGBA32 instead should be fine.

in reply to: ↑ 3   Changed 2 years ago by jackburton

Replying to jackburton:

I think I found the problem. TBarApp::AddTeam() uses BBitmap::SetBits() and passes B_RGB32 as colorspace parameter, but SetBits() interprets that as B_RGB24_BIG (to mimic R5's behaviour, AFAIK). Passing B_RGBA32 instead should be fine.

Actually it already passes RGBA32. looks like the problem was elsewhere. Should be fixed in rev 19420, please review.

follow-up: ↓ 6   Changed 2 years ago by axeld

Stefano, in case you missed it: please always write r19420, so Trac can pick it up and create a link to the revision.

in reply to: ↑ 5   Changed 2 years ago by jackburton

Replying to axeld:

Stefano, in case you missed it: please always write r19420, so Trac can pick it up and create a link to the revision.

Yes, sorry, I forgot about that. What about the change ? Does it look correct ? At least I can't reproduce this bug anymore.

  Changed 2 years ago by jackburton

Also, the generic application icon in deskbar is still the old style 8 bit icon (and that's why my change fixed the problem)

  Changed 23 months ago by jackburton

  • status changed from new to closed
  • resolution set to fixed

Original bug is fixed, I'll open a new bug for the 8 bit icon problem

Note: See TracTickets for help on using tickets.