[haiku-bugs] Re: [Haiku] #4562: MIDI endpoint icons should support vector icon format too

#4562: MIDI endpoint icons should support vector icon format too
---------------------------+------------------------------------------------
 Reporter:  phoudoin       |       Owner:  phoudoin
     Type:  enhancement    |      Status:  assigned
 Priority:  normal         |   Milestone:  R1      
Component:  Kits/Midi Kit  |     Version:          
 Keywords:                 |   Blockedby:          
 Platform:  All            |    Blocking:          
---------------------------+------------------------------------------------

Comment(by Pete):

 Replying to [comment:9 phoudoin]:
 > I just add vector icon support to midi_server in r34230, using your
 attached MIDIport.icon flat vector icon above. I've check with PatchBay,
 and "bitmap" endpoint icons are now showing your icon.

 PatchBay still does not get correct vector icon data, because the
 resources data gets lost by the time _SetIcon() is called!

 The problem is that the 'resource' variable is local to the DeviceWatcher
 constructor, and its data is not preserved outside that.  Making it a
 static global fixes things.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/4562#comment:10>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: