[3depict] 01/01: * Re-add this file
D Haley
mycae-guest at moszumanska.debian.org
Fri Dec 13 18:43:37 UTC 2013
This is an automated email from the git hooks/post-receive script.
mycae-guest pushed a commit to branch master
in repository 3depict.
commit dce1eb330f0f5bcf20aeb4efa7c8632d2a6b9333
Author: D Haley <mycae at gmx.com>
Date: Sun Dec 8 14:07:26 2013 +0100
* Re-add this file
---
debian/patches/fix-mgl-overlay-title | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/debian/patches/fix-mgl-overlay-title b/debian/patches/fix-mgl-overlay-title
new file mode 100644
index 0000000..39c017c
--- /dev/null
+++ b/debian/patches/fix-mgl-overlay-title
@@ -0,0 +1,24 @@
+Index: 3depict-0.0.15/src/backend/plot.cpp
+===================================================================
+--- 3depict-0.0.15.orig/src/backend/plot.cpp 2013-12-08 13:55:53.000000000 +0100
++++ 3depict-0.0.15/src/backend/plot.cpp 2013-12-08 13:56:19.000000000 +0100
+@@ -1852,17 +1852,10 @@
+ gr->Line (mglPoint(bufX[uj],std::max(0.0f,(float)boundMin.y)),
+ mglPoint(bufX[uj],bufY[uj]),colourCode,100);
+
+- //Print labels near to the text
+- const float STANDOFF_FACTOR=1.05;
+-#ifdef USE_MGL2
+- gr->Text(mglData(bufX[uj]),mglData(bufY[uj]*STANDOFF_FACTOR),
++ const float STANDOFF_FACTOR=1.05f;
++ gr->Puts(mglPoint(bufX[uj],bufY[uj]*STANDOFF_FACTOR),
+ overlayData[ui].title.c_str());
+-#else
+- //Font size in mathgl uses negative values to set a relative font size
+- gr->Text(mglPoint(bufX[uj],bufY[uj]*STANDOFF_FACTOR),
+- overlayData[ui].title.c_str(),"",-0.6);
+
+-#endif
+ }
+ }
+ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/3depict.git
More information about the debian-science-commits
mailing list