equal
deleted
inserted
replaced
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 } |