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 +4 -4
- data/Gosu/Version.hpp +2 -2
- data/ext/gosu/extconf.rb +6 -4
- data/ext/gosu/gosu_wrap.cxx +2 -2
- data/src/Window.cpp +11 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4bbba20695607d9b598c1326cc66afc8ccc7076
|
4
|
+
data.tar.gz: c49111594797a0c889a496e540df30d7139b62f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7baea7d151bf70165831763a2c21f29b3e4726966b24efbefe33a5125c5a2f0b64bd6d2e2c9573061cb566df652d177dc3e411ce850f04f4e3169b826f09fe3
|
7
|
+
data.tar.gz: a2da55d30909f7fd09a268a22edcf9e54afd4a9b8e534100fc9ea8232b317476bb9b8c01e081b549e9700068189d7020552210a14eb1bac04d1d33822f9a67ef
|
data/Gosu/Version.hpp
CHANGED
@@ -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
|
7
|
-
#define GOSU_VERSION "0.8.
|
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" \
|
data/ext/gosu/extconf.rb
CHANGED
@@ -8,12 +8,14 @@ if RUBY_PLATFORM =~ /mswin|mingw32|mingw64|win32\-|\-win32/ then
|
|
8
8
|
exit 1
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
data/ext/gosu/gosu_wrap.cxx
CHANGED
@@ -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 >(
|
10836
|
-
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.
|
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);
|
data/src/Window.cpp
CHANGED
@@ -13,25 +13,29 @@ namespace Gosu
|
|
13
13
|
void registerFrame();
|
14
14
|
}
|
15
15
|
|
16
|
-
SDL_DisplayMode
|
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 (
|
23
|
-
|
22
|
+
if (currentDisplayMode.w == 0) {
|
23
|
+
SDL_Init(SDL_INIT_VIDEO);
|
24
|
+
SDL_GetDisplayMode(0, 0, ¤tDisplayMode);
|
25
|
+
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
24
26
|
}
|
25
|
-
return
|
27
|
+
return currentDisplayMode.w;
|
26
28
|
}
|
27
29
|
|
28
30
|
unsigned Gosu::screenHeight()
|
29
31
|
{
|
30
32
|
// TODO - not thread-safe
|
31
|
-
if (
|
32
|
-
|
33
|
+
if (currentDisplayMode.h == 0) {
|
34
|
+
SDL_Init(SDL_INIT_VIDEO);
|
35
|
+
SDL_GetDisplayMode(0, 0, ¤tDisplayMode);
|
36
|
+
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
33
37
|
}
|
34
|
-
return
|
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.
|
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-
|
11
|
+
date: 2014-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|