summaryrefslogtreecommitdiff
path: root/graphics/xmrm/files/patch-af
blob: 175c7abc11db25d7247355ade8e0ae7b580d72c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)