gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libbase utility.h


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/libbase utility.h
Date: Sun, 27 Aug 2006 18:28:37 +0000

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; }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]