gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/fill_style.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/fill_style.cpp
Date: Tue, 29 Jan 2008 19:40:15 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/01/29 19:40:15

Modified files:
        .              : ChangeLog 
        server         : fill_style.cpp 

Log message:
        (create_gradient_bitmap): fix a probably unmeant float to int 
conversion.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5517&r2=1.5518
http://cvs.savannah.gnu.org/viewcvs/gnash/server/fill_style.cpp?cvsroot=gnash&r1=1.22&r2=1.23

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5517
retrieving revision 1.5518
diff -u -b -r1.5517 -r1.5518
--- ChangeLog   29 Jan 2008 14:52:17 -0000      1.5517
+++ ChangeLog   29 Jan 2008 19:40:14 -0000      1.5518
@@ -1,5 +1,7 @@
 2008-01-29 Sandro Santilli <address@hidden>
 
+       * server/fill_style.cpp (create_gradient_bitmap): fix a probably
+         unmeant float to int conversion.
        * server/asobj/LocalConnection.cpp: remove duplicated
          implementation of gnash::Listener class methods.
 

Index: server/fill_style.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/fill_style.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- server/fill_style.cpp       21 Jan 2008 20:55:50 -0000      1.22
+++ server/fill_style.cpp       29 Jan 2008 19:40:15 -0000      1.23
@@ -435,7 +435,7 @@
                        for (size_t i = 0; i < im->width(); i++)
                        {
                                float radiusy = (im->height() - 1) / 2.0f;
-                               float radiusx = radiusy + abs(radiusy * 
m_focal_point);
+                               float radiusx = radiusy + std::abs(radiusy * 
m_focal_point);
                                float y = (j - radiusy) / radiusy;
                                float x = (i - radiusx) / radiusx;
                                int ratio = (int) floorf(255.5f * sqrt(x*x + 
y*y));




reply via email to

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