mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
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:
parent
f90d1642a6
commit
3a630fe82f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user