Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-13040

Bug in TransparentBlt with 32bpp bitmaps and alpha channel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.7
    • Win32SS
    • None

    Description

      In windows when I call TransparentBltĀ  using a bitmap with alpha channel, it doesn't matter if the transparent color has the alpha value or not. In ros it needs the exact alpha value to work. I'm attaching a sample bitmap from the LunaInspirat theme that shows the problem. It is a 32bpp bitmap with an alhpa channel. In windows either 0x00FF00FF or 0xFFFF00FF work but in ros the transparency works only if I pass 0xFFFF00FF.
      I also attached a sample exe that does the TransparentBlt with 0x00FF00FF.
      test2.exe

      Attachments

        1. type-b.patch
          2 kB
          Katayama Hirofumi MZ
        2. type-a.patch
          2 kB
          Katayama Hirofumi MZ
        3. trans-fixed.png
          27 kB
          Katayama Hirofumi MZ
        4. trans-fixed.patch
          0.8 kB
          Katayama Hirofumi MZ
        5. test2.exe
          114 kB
          Giannis Adamopoulos
        6. snapshot115.png
          11 kB
          jimtabor
        7. bitmap1.bmp
          10 kB
          Giannis Adamopoulos

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              Smiley Giannis Adamopoulos
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: