psd_native 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/psd_native/mask.c +2 -2
- data/lib/psd_native/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bea0e25c39742ccaf28c7bf0cd34a3938e397a9a
|
4
|
+
data.tar.gz: cc3cacc75a358e8ef1a59493d296aaaaa69c20bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d5f4cea7ce4f8e6b5023696ddbc14ad5271a693c1513458b982705488fce2eb5a67ed06007c7779b417ba8a4a300168341365c5b6285010e8fb5790dfcd2cb
|
7
|
+
data.tar.gz: 33666649eb4fb4af8978e64befc1200a85f72b1c019001ac308f6655bcdaa52cb85553366da2ffd799bcccc6c5852df14378fb8cb84a8f5db7209119104acb5c
|
data/ext/psd_native/mask.c
CHANGED
@@ -31,8 +31,8 @@ VALUE psd_native_mask_apply_bang(VALUE self) {
|
|
31
31
|
layer_x = doc_x - layer_left;
|
32
32
|
layer_y = doc_y - layer_top;
|
33
33
|
|
34
|
-
if (layer_x < 0 || layer_x
|
35
|
-
|
34
|
+
if (layer_x < 0 || layer_x >= layer_width || layer_y < 0 || layer_y >= layer_height) continue;
|
35
|
+
|
36
36
|
color = FIX2UINT(rb_funcall(canvas, rb_intern("[]"), 2, INT2FIX(layer_x), INT2FIX(layer_y)));
|
37
37
|
|
38
38
|
if (doc_x < 0 || doc_x >= doc_width || doc_y < 0 || doc_y > doc_height) {
|
data/lib/psd_native/version.rb
CHANGED