aboutsummaryrefslogtreecommitdiff
path: root/graphics/xmrm/files/patch-af
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2000-03-28 22:44:14 +0000
committerAde Lovett <ade@FreeBSD.org>2000-03-28 22:44:14 +0000
commit18c6805255aedbffee721bc444fe9bebd3ad4c64 (patch)
tree38924f720481eadccd4357613521ef205165aa3e /graphics/xmrm/files/patch-af
parent5fe1f019d30adf27c75b1c7c7489200acaa41041 (diff)
downloadports-18c6805255aedbffee721bc444fe9bebd3ad4c64.tar.gz
ports-18c6805255aedbffee721bc444fe9bebd3ad4c64.zip
Notes
Diffstat (limited to 'graphics/xmrm/files/patch-af')
-rw-r--r--graphics/xmrm/files/patch-af30
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics/xmrm/files/patch-af b/graphics/xmrm/files/patch-af
new file mode 100644
index 000000000000..175c7abc11db
--- /dev/null
+++ b/graphics/xmrm/files/patch-af
@@ -0,0 +1,30 @@
+--- morphvec.cc.orig Mon Mar 9 17:00:00 1998
++++ morphvec.cc Tue Mar 28 15:31:48 2000
+@@ -9,6 +9,7 @@
+ #include "io.h"
+ #include "xmrm.h"
+ //#include "areas.h"
++#include <floatingpoint.h>
+
+ //static int oneliner = 1;
+
+@@ -17,7 +18,7 @@
+
+ extern Display *disp;
+
+-extern max_x,max_y;
++extern int max_x,max_y;
+ extern ControlClass control;
+ extern VisualInfoClass vis;
+ extern WindowClass *s_win, *d_win;
+@@ -433,6 +434,10 @@
+ void MorphVecClass::DrawVectorScal(FL_OBJECT *obj, int item, int mode, FL_COLOR col)
+ {
+ double sc_x,sc_y;
++
++ /* don't exit on FPE */
++ fpsetmask(0);
++
+ sc_x = (double) obj->w / max_x; sc_y = (double) obj->h / max_y;
+
+ if (item > nr_vec)