Browse Source

Fixed issue with screen resolution chaning with scaled dpi settings, window would go smaller

scott brogden 5 years ago
parent
commit
f3a67497df
1 changed files with 6 additions and 0 deletions
  1. 6 0
      QuickPaste.cpp

+ 6 - 0
QuickPaste.cpp

@@ -135,6 +135,12 @@ void CQuickPaste::ShowQPasteWnd(CWnd *pParent, bool bAtPrevPos, bool bFromKeyboa
 	{
 		CGetSetOptions::GetQuickPastePoint(point);
 		CGetSetOptions::GetQuickPasteSize(csSize);
+
+		if (IsWindow(m_pwndPaste->m_hWnd))
+		{
+			csSize.cx = m_pwndPaste->m_DittoWindow.m_dpi.Scale(csSize.cx);
+			csSize.cy = m_pwndPaste->m_DittoWindow.m_dpi.Scale(csSize.cy);
+		}
 	}
 
 	CPoint ptCaret = theApp.m_activeWnd.FocusCaret();