texplay 0.2.980 → 0.2.981
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/README.markdown +1 -1
- data/examples/example_dup.rb +2 -1
- data/ext/texplay/graphics_utils.c +4 -1
- data/ext/texplay/texplay.h +0 -1
- data/lib/texplay/version.rb +1 -1
- data/lib/texplay.rb +2 -2
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
16/8/10
|
2
|
+
version 0.2.981
|
3
|
+
* oops, added :caching => false to TexPlay#dup
|
4
|
+
* oops, put 'self' inside the capture block for TexPlay#clear
|
5
|
+
* got rid of tolerance member from rgba struct, as tolerance is now stored
|
6
|
+
separately
|
7
|
+
|
8
|
+
|
1
9
|
16/8/10
|
2
10
|
version 0.2.980
|
3
11
|
* added :caching option to TexPlay.set_options, and Gosu::Image.new. For
|
data/README.markdown
CHANGED
data/examples/example_dup.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
require 'rubygems'
|
2
3
|
require 'common'
|
3
4
|
require 'gosu'
|
@@ -34,7 +35,7 @@ class W < Gosu::Window
|
|
34
35
|
# add a red line to the copy to identify it
|
35
36
|
#@bunk.line 0, 0, 1024, 1024, :color => :red
|
36
37
|
|
37
|
-
@bunk.each(:region =>[200,200,350,350]) { |c,x,y|
|
38
|
+
@bunk.each(:region =>[200,200,350,350]) { |c,x,y| #
|
38
39
|
|
39
40
|
num_pixels = 0
|
40
41
|
total = [0, 0, 0, 0]
|
@@ -318,10 +318,13 @@ create_image(VALUE window, int width, int height)
|
|
318
318
|
|
319
319
|
VALUE rmagick_img;
|
320
320
|
VALUE new_image;
|
321
|
+
VALUE options = rb_hash_new();
|
322
|
+
|
323
|
+
set_hash_value(options, "caching", Qfalse);
|
321
324
|
|
322
325
|
rmagick_img = rb_funcall(empty_image_stub, rb_intern("new"), 2, INT2FIX(width), INT2FIX(height));
|
323
326
|
|
324
|
-
new_image = rb_funcall(image, rb_intern("new"),
|
327
|
+
new_image = rb_funcall(image, rb_intern("new"), 3, window, rmagick_img, options);
|
325
328
|
|
326
329
|
return new_image;
|
327
330
|
}
|
data/ext/texplay/texplay.h
CHANGED
data/lib/texplay/version.rb
CHANGED
data/lib/texplay.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: texplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1981
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 981
|
10
|
+
version: 0.2.981
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Mair (banisterfiend)
|