Merge "Remove “scaling” logging from QBackingStore"
commit
ba74953f4f
|
|
@ -151,15 +151,11 @@ void QBackingStore::beginPaint(const QRegion ®ion)
|
|||
|| source->size() != d_ptr->highDpiBackingstore->size()
|
||||
|| source->devicePixelRatio() != d_ptr->highDpiBackingstore->devicePixelRatio();
|
||||
if (needsNewImage) {
|
||||
qCDebug(lcScaling) << "QBackingStore::beginPaint new backingstore for" << d_ptr->window;
|
||||
qCDebug(lcScaling) << " source size" << source->size() << "dpr" << source->devicePixelRatio();
|
||||
d_ptr->highDpiBackingstore.reset(
|
||||
new QImage(source->bits(), source->width(), source->height(), source->bytesPerLine(), source->format()));
|
||||
|
||||
qreal targetDevicePixelRatio = d_ptr->window->devicePixelRatio();
|
||||
d_ptr->highDpiBackingstore->setDevicePixelRatio(targetDevicePixelRatio);
|
||||
qCDebug(lcScaling) <<" destination size" << d_ptr->highDpiBackingstore->size()
|
||||
<< "dpr" << targetDevicePixelRatio;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue