[commit] r1692 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Nov 16 15:56:36 CST 2011
Author: ksmyth
Date: Wed Nov 16 15:56:35 2011
New Revision: 1692
Log:
Fix Decorator visibility detection at zoom != 100
Modified:
trunk/GME/Gme/GMEView.cpp
Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp Wed Nov 16 15:56:23 2011 (r1691)
+++ trunk/GME/Gme/GMEView.cpp Wed Nov 16 15:56:35 2011 (r1692)
@@ -834,11 +834,9 @@
CRect clientRect;
GetClientRect(clientRect);
CPoint clientSize = clientRect.Size();
- clientSize = CPoint(clientSize.x * m_scalePercent / 100, clientSize.y * m_scalePercent / 100);
-
CPoint scrollpos = GetDeviceScrollPosition();
visible = CRect(scrollpos, scrollpos + clientSize);
- visible.InflateRect(m_scalePercent * 5, m_scalePercent * 5);
+ visible.InflateRect(10 * 100 / m_scalePercent, 10 * 100 / m_scalePercent);
visible = CRect(std::max(0l, visible.left), std::max(0l, visible.top),
visible.right, visible.bottom);
}
More information about the gme-commit
mailing list