gosu 0.8.2 → 0.8.3
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/gosu_wrap.cxx +2 -2
- data/src/Input/Input.cpp +2 -2
- data/src/Window.cpp +8 -2
- 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: 0c784033452e0c201c224b718caa97cc809751dc
|
4
|
+
data.tar.gz: cd1442a5124881f9ac41527e9f10f730a309df0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d46482cec5683d8a938d9be06fc69a7b1d8dec11299cca49351b23c86c2e377cdb38595ccdf93b0afd1f85b92246a75718cd6b96007e357b62cf9db7379d8b
|
7
|
+
data.tar.gz: b09fd1d374921955fd6da5ce9caac843948e6ee0f33fc5ff758dbc940cc48f30ee4c2fb43b08a7bb6c19b0d5c3a78841d7db99cdd49b4d6b7a34196ad25bf2f8
|
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 3
|
7
|
+
#define GOSU_VERSION "0.8.3"
|
8
8
|
|
9
9
|
#define GOSU_COPYRIGHT_NOTICE \
|
10
10
|
"This software uses the following third-party libraries:\n" \
|
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 >(3)));
|
10836
|
+
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.3"));
|
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/Input/Input.cpp
CHANGED
@@ -188,12 +188,12 @@ bool Gosu::Input::feedSDLEvent(void* event)
|
|
188
188
|
break;
|
189
189
|
}
|
190
190
|
case SDL_MOUSEWHEEL: {
|
191
|
-
if (e->wheel.y
|
191
|
+
if (e->wheel.y > 0) {
|
192
192
|
pimpl->enqueueEvent(msWheelUp, true);
|
193
193
|
pimpl->enqueueEvent(msWheelUp, false);
|
194
194
|
return true;
|
195
195
|
}
|
196
|
-
else if (e->wheel.y
|
196
|
+
else if (e->wheel.y < 0) {
|
197
197
|
pimpl->enqueueEvent(msWheelDown, true);
|
198
198
|
pimpl->enqueueEvent(msWheelDown, false);
|
199
199
|
return true;
|
data/src/Window.cpp
CHANGED
@@ -91,15 +91,21 @@ Gosu::Window::Window(unsigned width, unsigned height, bool fullscreen, double up
|
|
91
91
|
pimpl->window = SDL_CreateWindow("",
|
92
92
|
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
93
93
|
actualWidth, actualHeight,
|
94
|
-
SDL_WINDOW_OPENGL |
|
95
|
-
|
94
|
+
SDL_WINDOW_OPENGL |
|
95
|
+
// Note: This flag is not available in all versions of SDL 2, e.g. SDL 2.0.0 on OpenSuSE 13.1.
|
96
|
+
#ifdef SDL_WINDOW_ALLOW_HIGHDPI
|
97
|
+
SDL_WINDOW_ALLOW_HIGHDPI |
|
98
|
+
#endif
|
99
|
+
(fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0));
|
96
100
|
|
97
101
|
#ifdef GOSU_IS_OPENGLES
|
98
102
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
|
99
103
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
|
100
104
|
#endif
|
101
105
|
|
106
|
+
#if SDL_VERSION_ATLEAST(2, 0, 1)
|
102
107
|
SDL_GL_GetDrawableSize(pimpl->window, &actualWidth, &actualHeight);
|
108
|
+
#endif
|
103
109
|
|
104
110
|
pimpl->context = SDL_GL_CreateContext(pimpl->window);
|
105
111
|
SDL_GL_MakeCurrent(pimpl->window, pimpl->context);
|
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.3
|
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-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|