[haiku-bugs] Re: [Haiku] #12931: Spirograph (BeOS app) doesn't draw its background transparent

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 27 Aug 2021 14:59:10 -0000

#12931: Spirograph (BeOS app) doesn't draw its background transparent
---------------------------------+----------------------------
  Reporter:  jscipione           |      Owner:  jscipione
      Type:  bug                 |     Status:  closed
  Priority:  normal              |  Milestone:  R1/beta4
 Component:  Kits/Interface Kit  |    Version:  R1/Development
Resolution:  fixed               |   Keywords:
Blocked By:                      |   Blocking:
  Platform:  All                 |
---------------------------------+----------------------------
Comment (by pulkomandy):

 From the be book:

If the color space mode is B_RGB32, the data should be triplets of three
 8-bit components—red, green, and blue, in that order—without an alpha
 component. Although stored as 32-bit quantities with the components in
 BGRA order, the input data is only 24 bits in RGB order. Rows of source
 data do not need to be aligned.

 https://www.haiku-os.org/legacy-docs/bebook/BBitmap.html

 If we follow the documentation, your change is incorrect as it removes the
 code that does exactly this. And this is the reason we introduced
 ImportBits in the first place: ImportBits has an API that makes sense,
 instead of this.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/12931#comment:12>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: