File native-children-hidpi-offset.patch of Package libqt5-qtbase.8869
X-Git-Url: https://codereview.qt-project.org/gitweb?p=qt%2Fqtbase.git;a=blobdiff_plain;f=src%2Fgui%2Fpainting%2Fqplatformbackingstore.cpp;h=b88dd765410ccc61b648a3d6d70d686e1a6155ca;hp=b8bbdefa374d53d8573c6df30b5cbb0e202e8fd1;hb=9ff4abfb4a2a76b2ed0f664876955a9ab3a5b726;hpb=4c346b6e2bfab976bc9b16275b8382aee38aefa4
Index: qtbase-opensource-src-5.6.2/src/gui/painting/qplatformbackingstore.cpp
===================================================================
--- qtbase-opensource-src-5.6.2.orig/src/gui/painting/qplatformbackingstore.cpp
+++ qtbase-opensource-src-5.6.2/src/gui/painting/qplatformbackingstore.cpp
@@ -387,7 +387,7 @@ void QPlatformBackingStore::composeAndFl
d_ptr->blitter->setSwizzleRB(true);
// The backingstore is for the entire tlw.
// In case of native children offset tells the position relative to the tlw.
- const QRect srcRect = toBottomLeftRect(deviceWindowRect.translated(offset), d_ptr->textureSize.height());
+ const QRect srcRect = toBottomLeftRect(deviceWindowRect.translated(offset * window->devicePixelRatio()), d_ptr->textureSize.height());
const QMatrix3x3 source = QOpenGLTextureBlitter::sourceTransform(srcRect,
d_ptr->textureSize,
origin);