From cc1abb98a93ba88e5d55a1da6dc134b0d29e29f5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 19 Jun 2017 15:20:28 +0100 Subject: [PATCH] Update toolwindowmanager to 368309a --- qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManager.cpp b/qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManager.cpp index a192693b2..e031bbe80 100644 --- a/qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManager.cpp +++ b/qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManager.cpp @@ -1010,7 +1010,8 @@ void ToolWindowManager::finishDrag() { void ToolWindowManager::drawHotspotPixmaps() { for (AreaReferenceType ref : { AddTo, LeftOf, TopOf, RightOf, BottomOf }) { - m_pixmaps[ref] = QPixmap(m_dropHotspotDimension, m_dropHotspotDimension); + m_pixmaps[ref] = QPixmap(m_dropHotspotDimension*devicePixelRatio(), m_dropHotspotDimension*devicePixelRatio()); + m_pixmaps[ref].setDevicePixelRatio(devicePixelRatioF()); QPainter p(&m_pixmaps[ref]); p.setCompositionMode(QPainter::CompositionMode_Source);