Browse Source

200% scale fixes

scott brogden 8 years ago
parent
commit
9654b7d93f
5 changed files with 6 additions and 2 deletions
  1. 2 2
      DittoWindow.cpp
  2. 4 0
      SymbolEdit.cpp
  3. BIN
      res/open_folder_48.png
  4. BIN
      res/return_32.png
  5. BIN
      res/system_menu_2_48.png

+ 2 - 2
DittoWindow.cpp

@@ -282,7 +282,7 @@ void CDittoWindow::DoNcPaint(CWnd *pWnd)
 		rightRect.SetRect(rcBorder.right - (m_captionBorderWidth - border), rcBorder.top, rcBorder.right, rcBorder.top + IndexToPos(index, false));
 		leftRect.SetRect(rcBorder.right - (m_captionBorderWidth - border), rcBorder.top + IndexToPos(index, false), rcBorder.right, rcBorder.bottom);
 		
-		textRect.SetRect(rcBorder.right, rightRect.bottom + theApp.m_metrics.ScaleX(10), rcBorder.right - m_captionBorderWidth, rcBorder.bottom - theApp.m_metrics.ScaleX(50));
+		textRect.SetRect(rcBorder.right, rightRect.bottom + theApp.m_metrics.ScaleX(10), rcBorder.right - m_captionBorderWidth, rcBorder.bottom - theApp.m_metrics.ScaleX(1));
 
 		int left = rightRect.left;
 		int right = rightRect.right;
@@ -309,7 +309,7 @@ void CDittoWindow::DoNcPaint(CWnd *pWnd)
 		rightRect.SetRect(rcBorder.left, rcBorder.top, rcBorder.left + m_captionBorderWidth - border, rcBorder.top + IndexToPos(index, false));
 		leftRect.SetRect(rcBorder.left, rcBorder.top + IndexToPos(index, false), rcBorder.left + m_captionBorderWidth - border, rcBorder.bottom);
 
-		textRect.SetRect(rcBorder.left + m_captionBorderWidth - theApp.m_metrics.ScaleX(0), rightRect.bottom + theApp.m_metrics.ScaleX(10), rcBorder.left - theApp.m_metrics.ScaleX(5), rcBorder.bottom - theApp.m_metrics.ScaleX(50));
+		textRect.SetRect(rcBorder.left + m_captionBorderWidth - theApp.m_metrics.ScaleX(0), rightRect.bottom + theApp.m_metrics.ScaleX(10), rcBorder.left - theApp.m_metrics.ScaleX(5), rcBorder.bottom - theApp.m_metrics.ScaleX(1));
 
 		int left = rightRect.left;
 		int right = rightRect.right;

+ 4 - 0
SymbolEdit.cpp

@@ -328,6 +328,10 @@ void CSymbolEdit::OnPaint()
 
 	if (text.GetLength() == 0 && m_strPromptText.GetLength() > 0)
 	{
+		//if we aren't showing the close icon, then use the full space
+		textRect.right += HIWORD(margins);
+		textRect.right -= LOWORD(margins);
+
 		oldFont = dc.SelectObject(&m_fontPrompt);
 		COLORREF color = dc.GetTextColor();
 		dc.SetTextColor(m_colorPromptText);

BIN
res/open_folder_48.png


BIN
res/return_32.png


BIN
res/system_menu_2_48.png