CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/08/27 18:28:37

Modified files:
        libbase        : utility.h 

Log message:
        Macromedia Flash changes infinite to zero when works with a matrix

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.6&r2=1.7

Patches:
Index: utility.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/utility.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- utility.h   25 Aug 2006 13:18:58 -0000      1.6
+++ utility.h   27 Aug 2006 18:28:37 -0000      1.7
@@ -74,6 +74,7 @@
 // some misc handy math functions
 //
 
+inline float infinite_to_fzero(float x) {      return isfinite(x) ? x : 0.0f; }
 inline int     iabs(int i) { if (i < 0) return -i; else return i; }
 inline int     imax(int a, int b) { if (a < b) return b; else return a; }
 inline float   fmax(float a, float b) { if (a < b) return b; else return a; }


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to