gosu 0.10.3-x86-mingw32 → 0.10.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0981f4e50dc04e0c76fcff1a31d38bc0877a0d4c
4
- data.tar.gz: 215c95de67803448782fa2c9742e58e17f601c73
3
+ metadata.gz: 1ce87fc30ea09adf718998a0961fb35f55ff7d61
4
+ data.tar.gz: c5f109c5935281f76624ee2516e01032942c1bec
5
5
  SHA512:
6
- metadata.gz: 63312050f791ea084445d600db1078fb451518e925a8ac74ecfb6e33f21c39c0c442bdb4d24bb671ed2597619d8a8b8e275ffc0f627496939c0238ca070057ae
7
- data.tar.gz: 0257e9c595b8725cd86ed39e14b338abeeb16feefb3e8943324e29fcd9966340e9ddf7d19de2d569c9e09b3764eda68d9cef1380392179f52945b43be72cff6b
6
+ metadata.gz: 1c4e8f93383a8569254c047ee4f83a1df8443cf6b40b0ed92eed976fd55f36a4cb260ddde57787615cf8ca200cfed17e0519ad0c20512522086464220565dc98
7
+ data.tar.gz: 15e0aab93ca020c7ed7ba990ab54e6783b6ed036b07d29f23c2657b49f0507320e77bf078c277839178954469dd3e4b5be5ad832ef8864d60a73268dfa742c78
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -25,8 +25,22 @@ module Gosu::Button
25
25
  end
26
26
 
27
27
  # Backwards compatibility:
28
- # The old version of from_text has been deprecated in Gosu 0.9.
28
+ # Passing a Window to initialize and from_text has been deprecated in Gosu 0.9.
29
29
  class Gosu::Image
30
+ alias initialize_without_window initialize
31
+
32
+ def initialize(*args)
33
+ if args[0].is_a? Gosu::Window then
34
+ if args.size == 7 then
35
+ initialize_without_window args[1], :tileable => args[2], :rect => args[3..-1]
36
+ else
37
+ initialize_without_window args[1], :tileable => args[2]
38
+ end
39
+ else
40
+ initialize_without_window(*args)
41
+ end
42
+ end
43
+
30
44
  class << self
31
45
  alias from_text_without_window from_text
32
46
  end
@@ -44,7 +58,7 @@ class Gosu::Image
44
58
  end
45
59
 
46
60
  # Backwards compatibility:
47
- # Passing a Window Sample#initialize has been deprecated in Gosu 0.7.17.
61
+ # Passing a Window to Sample#initialize has been deprecated in Gosu 0.7.17.
48
62
  class Gosu::Sample
49
63
  alias initialize_without_window initialize
50
64
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.