src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the plugins of the Qt Toolkit.
     7 ** This file is part of the plugins of the Qt Toolkit.
     8 **
     8 **
   468     const QSize size = transform.mapRect(QRect(0, 0, w, h)).size();
   468     const QSize size = transform.mapRect(QRect(0, 0, w, h)).size();
   469     if (size.isEmpty())
   469     if (size.isEmpty())
   470         return QPixmap();
   470         return QPixmap();
   471 
   471 
   472     QDirectFBPixmapData *data = new QDirectFBPixmapData(screen, QPixmapData::PixmapType);
   472     QDirectFBPixmapData *data = new QDirectFBPixmapData(screen, QPixmapData::PixmapType);
       
   473     data->setSerialNumber(++global_ser_no);
   473     DFBSurfaceBlittingFlags flags = DSBLIT_NOFX;
   474     DFBSurfaceBlittingFlags flags = DSBLIT_NOFX;
   474     data->alpha = alpha;
   475     data->alpha = alpha;
   475     if (alpha) {
   476     if (alpha) {
   476         flags = DSBLIT_BLEND_ALPHACHANNEL;
   477         flags = DSBLIT_BLEND_ALPHACHANNEL;
   477     }
   478     }