mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
31 lines
679 B
Plaintext
31 lines
679 B
Plaintext
|
--- 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)
|