fix: preview hidpi

when I use 1.5 scale, preview image duplicate

Issue: Closes https://github.com/linuxdeepin/developer-center/issues/2057
Log:
Change-Id: Ia572777760a22be2781f73f848fe8a9f2122be9f
This commit is contained in:
justforlxz 2021-03-31 14:36:48 +08:00 committed by gerrit
parent f90d1642a6
commit 3a630fe82f

View File

@ -200,7 +200,6 @@ void AppSnapshot::fetchSnapshot()
m_snapshotSrcRect.moveLeft(m_snapshotSrcRect.left() * scale + 0.5);
m_snapshotSrcRect.setWidth(size.width() - 0.5);
m_snapshotSrcRect.setHeight(size.height() - 0.5);
m_snapshot.setDevicePixelRatio(ratio);
if (image_data) shmdt(image_data);
if (ximage) XDestroyImage(ximage);