[commit] r2610 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Oct 7 06:55:30 CDT 2015


Author: ksmyth
Date: Wed Oct  7 06:55:29 2015
New Revision: 2610

Log:
Fix hotspots for quick connect mode when scrolled or zoomed

Modified:
   trunk/GME/Gme/GMEView.cpp

Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp	Fri Oct  2 14:32:43 2015	(r2609)
+++ trunk/GME/Gme/GMEView.cpp	Wed Oct  7 06:55:29 2015	(r2610)
@@ -986,6 +986,7 @@
 					rect = connSrcPort->GetLocation() + rect.TopLeft();
 				}
 				Gdiplus::Pen* xorPen = graphics.GetGdipPen2(&gdip, GME_DARKRED_COLOR, GME_LINE_SOLID, m_zoomVal > ZOOM_NO, GME_CONNSELECT_WIDTH);
+				pDC->DPtoLP(rect);
 				gdip.DrawRectangle(xorPen, rect.left - .5f, rect.top - .5f, (float)rect.Width(), (float)rect.Height());
 
 				if ((connSrcHotSide != GME_CENTER) && (!connSrcPort)) {
@@ -1018,6 +1019,7 @@
 				if (connTmpPort) {
 					rect = connTmpPort->GetLocation() + rect.TopLeft();
 				}
+				pDC->DPtoLP(rect);
 				Gdiplus::Pen* xorPen = graphics.GetGdipPen2(&gdip, GME_RED_COLOR, GME_LINE_SOLID, m_zoomVal > ZOOM_NO, GME_CONNSELECT_WIDTH);
 				gdip.DrawRectangle(xorPen, rect.left - .5f, rect.top - .5f, (float) rect.Width(), (float) rect.Height());
 


More information about the gme-commit mailing list