[Top][All Lists]
[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-212-ga8a4b81 |
Date: |
Fri, 08 Apr 2011 10:27:57 +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 a8a4b8193eb99010dd378bff0484840ba7243546 (commit)
from 3d603f00aa4be917fb6e43f2e265de885127f441 (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=a8a4b8193eb99010dd378bff0484840ba7243546
commit a8a4b8193eb99010dd378bff0484840ba7243546
Author: Benjamin Wolsey <address@hidden>
Date: Fri Apr 8 09:34:11 2011 +0200
Make the noise RNG more generic
Use ints instead of boost::uint8_t and rely on the range restrictions
for the range of the output.
diff --git a/libcore/asobj/flash/display/BitmapData_as.cpp
b/libcore/asobj/flash/display/BitmapData_as.cpp
index 7f8ca62..1bdc8d3 100644
--- a/libcore/asobj/flash/display/BitmapData_as.cpp
+++ b/libcore/asobj/flash/display/BitmapData_as.cpp
@@ -123,14 +123,14 @@ namespace {
template<typename RNG = boost::rand48>
struct Noise
{
- Noise(int seed, boost::uint8_t low, boost::uint8_t high)
+ Noise(int seed, int low, int high)
:
rng(seed),
dist(low, high),
uni(rng, dist)
{}
- boost::uint8_t operator()() {
+ int operator()() {
return uni();
}
-----------------------------------------------------------------------
Summary of changes:
libcore/asobj/flash/display/BitmapData_as.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-212-ga8a4b81,
Benjamin Wolsey <=