gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Benjamin Wolsey
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-248-g31f2204
Date: Mon, 11 Apr 2011 09:29:26 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  31f22043a830621ff3c75fbb98bccaf21cb13e99 (commit)
      from  b92fc82b9570674116b7526514570ea334b8534b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=31f22043a830621ff3c75fbb98bccaf21cb13e99


commit 31f22043a830621ff3c75fbb98bccaf21cb13e99
Author: Benjamin Wolsey <address@hidden>
Date:   Mon Apr 11 10:23:30 2011 +0200

    Make sure alpha is 0xff, not 0, by default.

diff --git a/libcore/asobj/flash/display/BitmapData_as.cpp 
b/libcore/asobj/flash/display/BitmapData_as.cpp
index 562a46c..6ad8a0e 100644
--- a/libcore/asobj/flash/display/BitmapData_as.cpp
+++ b/libcore/asobj/flash/display/BitmapData_as.cpp
@@ -153,10 +153,10 @@ struct NoiseAdapter
 
         if (_greyscale) {
             boost::uint8_t val = _gen();
-            return val | val << 8 | val << 16;
+            return 0xff000000 | val | val << 8 | val << 16;
         }
 
-        boost::uint32_t ret = 0;
+        boost::uint32_t ret = 0xff000000;
 
         if (_bitmask & 1) {
             ret |= (_gen() << 16);
@@ -168,7 +168,9 @@ struct NoiseAdapter
             ret |= _gen();
         }
         if (_bitmask & 8) {
-            ret |= _gen() << 24;
+            // Alpha is 0xff by default.
+            const boost::uint8_t rd = _gen();
+            ret &= (~rd) << 24;
         }
         return ret;
     }

-----------------------------------------------------------------------

Summary of changes:
 libcore/asobj/flash/display/BitmapData_as.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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