gosu 0.10.3-x64-mingw32 → 0.10.4-x64-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: 78e2f89e403009d500bd11b46aec6353a1357d3b
4
- data.tar.gz: a3c9b6f236eaf1b3375ff2a4fc73bc8d516af8d1
3
+ metadata.gz: 64059fa1b3f907091141eae0a18569ec9d7eaf84
4
+ data.tar.gz: 356c2ef588dc39ed4700989f828e1d498598cabe
5
5
  SHA512:
6
- metadata.gz: e6439ee877ce1937f44b31dab5576204fed533ea30b1e773a8670f432944c0490d51a7cd8654cbf61bee565e993bc4d203878b155ba03cb903c4b08b0ba33aef
7
- data.tar.gz: b7d87be8d8b5a48e661800f16b879aca89b422e1af2ca31c99ea65cc847538dfe8173aa05ced441640b7faa2000a2631f1e51c4727e0bec8d6c2b20038561c39
6
+ metadata.gz: a50ce0d083ff47afcd18f805ab79e7b834296ead0d7316d72b8e7c3b508de700f27c916b77e219425fe65b8a5fa0749163928905a01d53928e02c549d968d4e9
7
+ data.tar.gz: b1ed57d1e435a97d03300fc95008ad6e7f636503b14685102880b7b8bd2d1da63d4110a92813e9fbeedcb6206fdf636ee0b0e70514ed7e94df9ab062a60466d1
@@ -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
 
Binary file
Binary file
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: x64-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.