freebsd-ports/graphics/xmrm/files/patch-af
Ade Lovett 18c6805255 xmrm (X Multi Resoultion image Metamorphosis) is an easy-to-use
morphing/warping program akin to xmorph, with some nice features,
like MPEG video creation.

PR:		14379
Submitted by:	Tobias Reifenberger <treif@mayn.de>
2000-03-28 22:44:14 +00:00

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)