rubygame 2.6.1 → 2.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/NEWS +14 -0
  2. data/lib/rubygame/screen.rb +17 -0
  3. metadata +2 -2
data/NEWS CHANGED
@@ -1,5 +1,19 @@
1
1
  = NEWS
2
2
 
3
+ == Rubygame 2.6.2
4
+
5
+ Release focus: Bug fixes.
6
+
7
+ === Fixes
8
+
9
+ - Fixed: Rubygame::Screen.set_mode and Rubygame::Screen.instance were
10
+ accidently lost during the FFI port. (Note: those methods are
11
+ deprecated, but kept for backwards compatibility. New code should
12
+ use Rubygame::Screen.new or Rubygame::Screen.open instead.)
13
+
14
+
15
+
16
+
3
17
  == Rubygame 2.6.1
4
18
 
5
19
  Release focus: Bug fixes.
@@ -60,6 +60,23 @@ class Rubygame::Screen < Rubygame::Surface
60
60
 
61
61
  alias :open :new
62
62
 
63
+ # Deprecated alias for Screen.new. This method will be REMOVED in
64
+ # Rubygame 3.0. You should use Screen.new (or its alias,
65
+ # Screen.open) instead.
66
+ #
67
+ def set_mode( size, depth=0, flags=[Rubygame::SWSURFACE] )
68
+ Rubygame.deprecated("Rubygame::Screen.set_mode", "3.0")
69
+ new( size, depth, flags )
70
+ end
71
+
72
+ # Deprecated alias for Screen.new. This method will be REMOVED in
73
+ # Rubygame 3.0. You should use Screen.new (or its alias,
74
+ # Screen.open) instead.
75
+ #
76
+ def instance( size, depth=0, flags=[Rubygame::SWSURFACE] )
77
+ Rubygame.deprecated("Rubygame::Screen.instance", "3.0")
78
+ new( size, depth, flags )
79
+ end
63
80
 
64
81
  # Close the Screen, making the Rubygame window disappear.
65
82
  # This method also exits from fullscreen mode, if needed.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygame
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Croisant
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-30 00:00:00 -05:00
12
+ date: 2009-11-12 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency