Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32288

Directfb don't draw correctly when using opacity propterty (CSS) in a webpage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.1.0 RC1
    • QPA: DirectFB
    • None
    • Hardware: arm contex-a9
      arm-linux-gcc: 4.4.1
      linux 2.6.35
      directfb: 1.4.2

    Description

      I build qtwebkit base on qt5.1.0rc1/directfb on a arm contex-a9 platform, css optacity property don't show the same as when I use qt4.8.2

      the css is:

      #layerbg {
      position:absolute;
      z-index:21;
      top:0px;
      left:0px;
      width:1280px;
      height:720px;
      background-color:#CCC;
      opacity:0.6;
      }

      html is:
      <div id="detaillayer">
      <div id="layerbg"></div>
      <div id="detailbg"></div>
      </div>

      I compare the code with qt4.8.2, find some difference, so
      I change
      blittingFlags = DFBSurfaceBlittingFlags(blittingFlags | DSBLIT_BLEND_COLORALPHA | (m_premult ? DSBLIT_SRC_PREMULTCOLOR : 0));
      to
      blittingFlags = DFBSurfaceBlittingFlags(blittingFlags | DSBLIT_BLEND_COLORALPHA | (m_premult ? DSBLIT_SRC_PREMULTCOLOR : DSBLIT_SRC_PREMULTIPLY));

      in
      qtbase/src/plugins/platforms/directfb/qdirectfbblitter.cpp

      the webpage draw correctly

      but I am not sure whether i do the right thing.

      Attachments

        1. bg1.jpg
          bg1.jpg
          93 kB
        2. demo.html
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rve Anders Bakken
            shungo Shuguo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes