[haiku-bugs] Re: [Haiku] #7088: [BootManager] show disk icons on Drives page

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Wed, 17 Sep 2014 16:33:13 -0000

#7088: [BootManager] show disk icons on Drives page
----------------------------------------+----------------------------
   Reporter:  diver                     |      Owner:  axeld
       Type:  enhancement               |     Status:  assigned
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/BootManager  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  1                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by stippi):

 Thanks for the patch! It looks good, but you need to delete fIcon in the
 destructor. Also, if device.GetIcon() fails (it has a return code, I
 believe), you could memset(fIcon->Bits(), 0, fIcon->BitsLength()) to draw
 a transparent icon.

--
Ticket URL: <https://dev.haiku-os.org/ticket/7088#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: