Changeset 651 for trunk/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 471 471 472 472 QDirectFBPixmapData *data = new QDirectFBPixmapData(screen, QPixmapData::PixmapType); 473 data->setSerialNumber(++global_ser_no); 473 474 DFBSurfaceBlittingFlags flags = DSBLIT_NOFX; 474 475 data->alpha = alpha; … … 552 553 } 553 554 555 556 bool QDirectFBPixmapData::scroll(int dx, int dy, const QRect &rect) 557 { 558 if (!dfbSurface) { 559 return false; 560 } 561 unlockSurface(); 562 DFBResult result = dfbSurface->SetBlittingFlags(dfbSurface, DSBLIT_NOFX); 563 if (result != DFB_OK) { 564 DirectFBError("QDirectFBPixmapData::scroll", result); 565 return false; 566 } 567 result = dfbSurface->SetPorterDuff(dfbSurface, DSPD_NONE); 568 if (result != DFB_OK) { 569 DirectFBError("QDirectFBPixmapData::scroll", result); 570 return false; 571 } 572 573 const DFBRectangle source = { rect.x(), rect.y(), rect.width(), rect.height() }; 574 result = dfbSurface->Blit(dfbSurface, dfbSurface, &source, source.x + dx, source.y + dy); 575 if (result != DFB_OK) { 576 DirectFBError("QDirectFBPixmapData::scroll", result); 577 return false; 578 } 579 580 return true; 581 } 582 554 583 void QDirectFBPixmapData::invalidate() 555 584 { … … 568 597 569 598 #endif // QT_NO_QWS_DIRECTFB 570 571 572
Note:
See TracChangeset
for help on using the changeset viewer.