gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite MovieTester.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite MovieTester.cpp
Date: Mon, 29 Oct 2007 20:21:51 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/10/29 20:21:51

Modified files:
        testsuite      : MovieTester.cpp 

Log message:
        Fix tolerance multiplication (don't multiply the tolerance by itself)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.57&r2=1.58

Patches:
Index: MovieTester.cpp
===================================================================
RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -b -r1.57 -r1.58
--- MovieTester.cpp     29 Oct 2007 20:09:39 -0000      1.57
+++ MovieTester.cpp     29 Oct 2007 20:21:51 -0000      1.58
@@ -275,7 +275,7 @@
 
                // Find minimum tolerance as a function of BPP
 
-               unsigned short minRendererTolerance = tolerance;
+               unsigned short minRendererTolerance = 1;
                unsigned int bpp = handler.getBitsPerPixel();
                if ( bpp ) 
                {
@@ -284,7 +284,7 @@
                }
 
                //unsigned short tol = std::max(tolerance, 
minRendererTolerance);
-               unsigned short tol = tolerance*minRendererTolerance; 
//std::max(tolerance, minRendererTolerance);
+               unsigned short tol = tolerance*minRendererTolerance; 
 
                ss << "exp:" << color.toShortString() << " ";
                ss << "obt:" << obt_col.toShortString() << " ";




reply via email to

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