gosu 0.8.1 → 0.8.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5549ad763739952fb86e6933b99567bca3b5ce21
4
- data.tar.gz: 8e7a4d3fc179690da283e03d57d7906e4a3a002b
3
+ metadata.gz: d4bbba20695607d9b598c1326cc66afc8ccc7076
4
+ data.tar.gz: c49111594797a0c889a496e540df30d7139b62f5
5
5
  SHA512:
6
- metadata.gz: b95348feb7f62e620f3ad05a0370057df79a7674dc371ac6675641af32bfd97d98a62c77c1b48a09de499db5664d4d41f6e620914164702109dbc663ace2e5e6
7
- data.tar.gz: baa634c7cbdbe03723126ccc88c4287b382e3a22d529d5c28ddb0885de8a429d2e281391a021c0a7a143c3a487b3fb4c85c018cf28cd3112694d6303d932aae8
6
+ metadata.gz: e7baea7d151bf70165831763a2c21f29b3e4726966b24efbefe33a5125c5a2f0b64bd6d2e2c9573061cb566df652d177dc3e411ce850f04f4e3169b826f09fe3
7
+ data.tar.gz: a2da55d30909f7fd09a268a22edcf9e54afd4a9b8e534100fc9ea8232b317476bb9b8c01e081b549e9700068189d7020552210a14eb1bac04d1d33822f9a67ef
@@ -3,8 +3,8 @@
3
3
 
4
4
  #define GOSU_MAJOR_VERSION 0
5
5
  #define GOSU_MINOR_VERSION 8
6
- #define GOSU_POINT_VERSION 1
7
- #define GOSU_VERSION "0.8.1"
6
+ #define GOSU_POINT_VERSION 2
7
+ #define GOSU_VERSION "0.8.2"
8
8
 
9
9
  #define GOSU_COPYRIGHT_NOTICE \
10
10
  "This software uses the following third-party libraries:\n" \
@@ -8,12 +8,14 @@ if RUBY_PLATFORM =~ /mswin|mingw32|mingw64|win32\-|\-win32/ then
8
8
  exit 1
9
9
  end
10
10
 
11
- if `uname`.chomp != "Darwin" then
12
- puts 'The Gosu gem requires some libraries to be installed system-wide.'
13
- puts 'See the following site for a list:'
11
+ puts 'The Gosu gem requires some libraries to be installed system-wide.'
12
+ puts 'See the following site for a list:'
13
+ if `uname`.chomp == "Darwin" then
14
+ puts 'https://github.com/jlnr/gosu/wiki/Getting-Started-on-OS-X'
15
+ else
14
16
  puts 'https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux'
15
- puts
16
17
  end
18
+ puts
17
19
 
18
20
  BASE_FILES = %w(
19
21
  Bitmap/Bitmap.cpp
@@ -10832,8 +10832,8 @@ SWIGEXPORT void Init_gosu(void) {
10832
10832
  SWIG_RubyInitializeTrackings();
10833
10833
  rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
10834
10834
  rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(8)));
10835
- rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(1)));
10836
- rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.1"));
10835
+ rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(2)));
10836
+ rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.2"));
10837
10837
  rb_define_const(mGosu, "GOSU_COPYRIGHT_NOTICE", SWIG_FromCharPtr("This software uses the following third-party libraries:\n\nGosu, http://www.libgosu.org, MIT License, http://opensource.org/licenses/MIT\nSDL 2, http://www.libsdl.org, MIT License, http://opensource.org/licenses/MIT\nFreeImage, http://freeimage.sourceforge.net, FreeImage Public License\nlibogg & libvorbis, http://www.xiph.org, BSD License, 3-Clause Version, http://www.xiph.org/licenses/bsd\nlibsndfile, http://www.mega-nerd.com/libsndfile, GNU LGPL 3, http://www.gnu.org/copyleft/lesser.html\nOpenAL Soft, http://kcat.strangesoft.net/openal.html, GNU LGPL 2, http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html\n"));
10838
10838
  rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
10839
10839
  rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
@@ -13,25 +13,29 @@ namespace Gosu
13
13
  void registerFrame();
14
14
  }
15
15
 
16
- SDL_DisplayMode desktopDisplayMode = { 0, 0 };
16
+ SDL_DisplayMode currentDisplayMode = { 0, 0 };
17
17
  }
18
18
 
19
19
  unsigned Gosu::screenWidth()
20
20
  {
21
21
  // TODO - not thread-safe
22
- if (desktopDisplayMode.w == 0) {
23
- SDL_GetDesktopDisplayMode(0, &desktopDisplayMode);
22
+ if (currentDisplayMode.w == 0) {
23
+ SDL_Init(SDL_INIT_VIDEO);
24
+ SDL_GetDisplayMode(0, 0, &currentDisplayMode);
25
+ SDL_QuitSubSystem(SDL_INIT_VIDEO);
24
26
  }
25
- return desktopDisplayMode.w;
27
+ return currentDisplayMode.w;
26
28
  }
27
29
 
28
30
  unsigned Gosu::screenHeight()
29
31
  {
30
32
  // TODO - not thread-safe
31
- if (desktopDisplayMode.h == 0) {
32
- SDL_GetDesktopDisplayMode(0, &desktopDisplayMode);
33
+ if (currentDisplayMode.h == 0) {
34
+ SDL_Init(SDL_INIT_VIDEO);
35
+ SDL_GetDisplayMode(0, 0, &currentDisplayMode);
36
+ SDL_QuitSubSystem(SDL_INIT_VIDEO);
33
37
  }
34
- return desktopDisplayMode.h;
38
+ return currentDisplayMode.h;
35
39
  }
36
40
 
37
41
  struct Gosu::Window::Impl
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-08-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.