png2swf 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/oily_png2swf/oily_png2swf_ext.c +3 -3
- data/lib/png2swf/version.rb +1 -1
- metadata +4 -4
@@ -28,9 +28,9 @@ VALUE bitmap_data(VALUE vself, VALUE vpixels) {
|
|
28
28
|
for (i=0; i<pixel_size; i++) {
|
29
29
|
color = NUM2ULONG((RARRAY(vpixels)->ptr[i]));
|
30
30
|
a = alpha(color);
|
31
|
-
r = (unsigned char)(
|
32
|
-
g = (unsigned char)(
|
33
|
-
b = (unsigned char)(
|
31
|
+
r = (unsigned char)(red(color) * (a / 255));
|
32
|
+
g = (unsigned char)(green(color) * (a / 255));
|
33
|
+
b = (unsigned char)(blue(color) * (a / 255));
|
34
34
|
data[data_index] = a;
|
35
35
|
data[data_index+1] = r;
|
36
36
|
data[data_index+2] = g;
|
data/lib/png2swf/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: png2swf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Naoki Maeda
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-27 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|