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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4bbba20695607d9b598c1326cc66afc8ccc7076
4
- data.tar.gz: c49111594797a0c889a496e540df30d7139b62f5
3
+ metadata.gz: 0c784033452e0c201c224b718caa97cc809751dc
4
+ data.tar.gz: cd1442a5124881f9ac41527e9f10f730a309df0f
5
5
  SHA512:
6
- metadata.gz: e7baea7d151bf70165831763a2c21f29b3e4726966b24efbefe33a5125c5a2f0b64bd6d2e2c9573061cb566df652d177dc3e411ce850f04f4e3169b826f09fe3
7
- data.tar.gz: a2da55d30909f7fd09a268a22edcf9e54afd4a9b8e534100fc9ea8232b317476bb9b8c01e081b549e9700068189d7020552210a14eb1bac04d1d33822f9a67ef
6
+ metadata.gz: 90d46482cec5683d8a938d9be06fc69a7b1d8dec11299cca49351b23c86c2e377cdb38595ccdf93b0afd1f85b92246a75718cd6b96007e357b62cf9db7379d8b
7
+ data.tar.gz: b09fd1d374921955fd6da5ce9caac843948e6ee0f33fc5ff758dbc940cc48f30ee4c2fb43b08a7bb6c19b0d5c3a78841d7db99cdd49b4d6b7a34196ad25bf2f8
@@ -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 2
7
- #define GOSU_VERSION "0.8.2"
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" \
@@ -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 >(2)));
10836
- rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.2"));
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);
@@ -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 < 0) {
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 > 0) {
196
+ else if (e->wheel.y < 0) {
197
197
  pimpl->enqueueEvent(msWheelDown, true);
198
198
  pimpl->enqueueEvent(msWheelDown, false);
199
199
  return true;
@@ -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 | SDL_WINDOW_ALLOW_HIGHDPI |
95
- (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0));
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.2
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-24 00:00:00.000000000 Z
11
+ date: 2014-08-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.