Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
void QRasterPixmapData::copy(const QPixmapData *data, const QRect &rect)
{
- fromImage(data->toImage(rect).copy(), Qt::NoOpaqueDetection);
+ fromImage(data->toImage(rect), Qt::NoOpaqueDetection);
}
bool QRasterPixmapData::scroll(int dx, int dy, const QRect &rect)
void QX11PixmapData::copy(const QPixmapData *data, const QRect &rect)
{
if (data->pixelType() == BitmapType) {
- fromImage(data->toImage().copy(rect), Qt::AutoColor);
+ fromImage(data->toImage(rect), Qt::AutoColor);
return;
}