texplay 0.2.980 → 0.2.981

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/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
@@ -5,7 +5,7 @@
5
5
  INSTRUCTIONS
6
6
  ============
7
7
 
8
- **TexPlay version 0.2.980**
8
+ **TexPlay version 0.2.981**
9
9
 
10
10
  [Read The Documentation](http://banisterfiend.wordpress.com/2008/08/23/texplay-an-image-manipulation-tool-for-ruby-and-gosu/)
11
11
 
@@ -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"), 2, window, rmagick_img);
327
+ new_image = rb_funcall(image, rb_intern("new"), 3, window, rmagick_img, options);
325
328
 
326
329
  return new_image;
327
330
  }
@@ -57,7 +57,6 @@ typedef enum {
57
57
  /* structs */
58
58
  typedef struct s_rgba {
59
59
  float red, green, blue, alpha;
60
- float tolerance;
61
60
  } rgba;
62
61
 
63
62
  typedef struct {
@@ -1,3 +1,3 @@
1
1
  module TexPlay
2
- VERSION = "0.2.980"
2
+ VERSION = "0.2.981"
3
3
  end
data/lib/texplay.rb CHANGED
@@ -93,9 +93,9 @@ module TexPlay
93
93
 
94
94
  capture {
95
95
  rect 0, 0, width - 1, height - 1, options
96
- }
97
96
 
98
- self
97
+ self
98
+ }
99
99
  end
100
100
 
101
101
  end
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: 1983
4
+ hash: 1981
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 980
10
- version: 0.2.980
9
+ - 981
10
+ version: 0.2.981
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Mair (banisterfiend)