[haiku-bugs] Re: [Haiku] #7371: [OpenGL] reduce window width

  • From: "yourpalal" <trac@xxxxxxxxxxxx>
  • Date: Mon, 21 Nov 2011 19:14:43 -0000

#7371: [OpenGL] reduce window width
---------------------------+----------------------------
   Reporter:  diver        |      Owner:  nobody
       Type:  bug          |     Status:  new
   Priority:  normal       |  Milestone:  R1
  Component:  Preferences  |    Version:  R1/Development
 Resolution:               |   Keywords:
 Blocked By:               |   Blocking:
Has a Patch:  0            |   Platform:  All
---------------------------+----------------------------

Comment (by yourpalal):

 Replying to [comment:4 anevilyak]:
 > Replying to [comment:3 yourpalal]:
 > > I like moving the logo down, and adding the stripe, which seems to be
 a theme in the Haiku UI nowadays ;) It's worth noting that the logo.png
 file used appears to have a white background (viewing it in Github, at
 least), so that will have to be worked around. I'm not sure if BView
 supports color-keyed alpha while drawing, but if it does, that would work
 nicely.
 >
 > If I understand your intent correctly, it does, c.f. http://www.haiku-
 os.org/legacy-
 docs/bebook/TheInterfaceKit_Drawing.html#TheInterfaceKit_Drawing_Drawing_Modes
 - specifically with respect to drawing mode B_OP_ALPHA and consequently
 the appropriate parameters for SetBlendingMode()

 That's not quite what I meant but it'll work. Color-keyed alpha (not sure
 if that is exactly the right term) is supported for instance in SDL, where
 you can set an alpha-key, and any pixels of that exact value will be
 dropped when blitting, achieving a 100% transparency effect for those
 pixels.

 At any rate, logo.png could be edited to include an alpha-channel, or the
 programmer could introduce one, or could achieve a similar effect to
 color-key alpha by setting the white pixels to B_TRANSPARENT_MAGIC*.

 Anyway, it can certainly be done, and shouldn't be too tricky either.

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

Other related posts: