Changeset 719 for trunk/src/gui


Ignore:
Timestamp:
Apr 30, 2010, 5:49:20 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Use the const version of QImage::bits() to avoid making the deep copy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/painting/qwindowsurface_raster.cpp

    r708 r719  
    299299    GpiEnableYInversion(wps, widget->height() - 1);
    300300
    301     GpiDrawBits(wps, (PVOID) d->image->image.bits(), (PBITMAPINFO2) &bmh,
    302                 4, ptls, ROP_SRCCOPY, BBO_IGNORE);
     301    GpiDrawBits(wps, (PVOID) ,
     302                4, ptls, ROP_SRCCOPY, BBO_IGNORE);
    303303
    304304    GpiEnableYInversion(wps, oldInversion);
     
    349349                      { br.left(), br.top() },
    350350                      { br.right() + 1, br.bottom() + 1 } };
    351     GpiDrawBits(wps, (PVOID) d->image->image.bits(), (PBITMAPINFO2) &bmh, 4, ptls,
    352                 ROP_SRCCOPY, BBO_IGNORE);
     351    GpiDrawBits(wps, (PVOID) ,
     352                ROP_SRCCOPY, BBO_IGNORE);
    353353
    354354#ifndef QT_NO_DEBUG
Note: See TracChangeset for help on using the changeset viewer.