[dasher] The nodes would shrink when moving up and down in compass mode as I
- From: Patrick Welche <pwelche src gnome org>
- To: svn-commits-list gnome org
- Subject: [dasher] The nodes would shrink when moving up and down in compass mode as I
- Date: Mon, 18 May 2009 10:04:19 -0400 (EDT)
commit 79d1b594bd76c0aca0502fb0eeabf8a3169fe7f2
Author: Patrick Welche <prlw1 cam ac uk>
Date: Mon May 18 15:02:32 2009 +0100
The nodes would shrink when moving up and down in compass mode as I
"zoomed" only to the linear region of the y-axis, not the whole [0:ymax]
range.
---
NEWS | 6 ++++++
Src/DasherCore/DasherModel.cpp | 10 ++--------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/NEWS b/NEWS
index 327cfad..330726c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,10 @@
=============
+Dasher 4.10.2
+=============
+ * MacOS X version uses OpenGL
+ * Fix compass mode (broken by letter leakage fix in 4.10.0)
+
+=============
Dasher 4.10.1
=============
* Fix crash when scrolling precisely vertically.
diff --git a/Src/DasherCore/DasherModel.cpp b/Src/DasherCore/DasherModel.cpp
index 3142244..d15d18f 100644
--- a/Src/DasherCore/DasherModel.cpp
+++ b/Src/DasherCore/DasherModel.cpp
@@ -970,15 +970,9 @@ void CDasherModel::ScheduleZoom(dasherint X, dasherint Y, int iMaxZoom)
dasherint y1 = Y - X; // y = x + (Y - X)
dasherint y2 = Y + X; // y = -x + (Y + X)
- // The maximum linear region of the y-axis is from 5% - 95% of ymax
- // 5% and 95% come from dY3, dY2 in CDasherViewSquare::Cymap::Cymap,
- // and non-linearity between dasher coords m_Y3 to m_Y2 in
- // CDasherViewSquare::Cymap::map
- // (It is good to test with Y1 = 0, Y2 = ymax.)
- // XXX PRLW But m_Y3, m_Y2 are out of scope...
- const dasherint Y1 = ( 5 * scale) / 100; // m_Y3;
- const dasherint Y2 = (95 * scale) / 100; // m_Y2;
// Rename for readability.
+ const dasherint Y1 = 0;
+ const dasherint Y2 = ymax;
const dasherint R1 = m_Rootmin;
const dasherint R2 = m_Rootmax;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]