gosu 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71fb1da59dbdf5be05bc9d29730bcea66d38d3d0
4
- data.tar.gz: a683a15e61199bacd8d143d2302181b0fb939b92
3
+ metadata.gz: 5549ad763739952fb86e6933b99567bca3b5ce21
4
+ data.tar.gz: 8e7a4d3fc179690da283e03d57d7906e4a3a002b
5
5
  SHA512:
6
- metadata.gz: 3c68e4b00d48b726c0802ef69be9188c50ceec1f3641c27a836a03cdbd4438435e21e063365e9fc2fdf14fb295816c974db7bcb2d2322f724f1960f8cbde73a2
7
- data.tar.gz: afac87539b0fec2ee47fb1914a7d6ca9d4dc9dc39390c74965e009e32aa0313c52dd6315b93e0c97c47ac8cb9bf34e6ca51af30fba9506de50a1cf616d765f05
6
+ metadata.gz: b95348feb7f62e620f3ad05a0370057df79a7674dc371ac6675641af32bfd97d98a62c77c1b48a09de499db5664d4d41f6e620914164702109dbc663ace2e5e6
7
+ data.tar.gz: baa634c7cbdbe03723126ccc88c4287b382e3a22d529d5c28ddb0885de8a429d2e281391a021c0a7a143c3a487b3fb4c85c018cf28cd3112694d6303d932aae8
@@ -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 0
7
- #define GOSU_VERSION "0.8.0"
6
+ #define GOSU_POINT_VERSION 1
7
+ #define GOSU_VERSION "0.8.1"
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 >(0)));
10836
- rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.0"));
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"));
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);
@@ -190,9 +190,11 @@ bool Gosu::Input::feedSDLEvent(void* event)
190
190
  case SDL_MOUSEWHEEL: {
191
191
  if (e->wheel.y < 0) {
192
192
  pimpl->enqueueEvent(msWheelUp, true);
193
+ pimpl->enqueueEvent(msWheelUp, false);
193
194
  return true;
194
195
  }
195
196
  else if (e->wheel.y > 0) {
197
+ pimpl->enqueueEvent(msWheelDown, true);
196
198
  pimpl->enqueueEvent(msWheelDown, false);
197
199
  return true;
198
200
  }
@@ -62,16 +62,16 @@ std::wstring getNameFromTTFFile(const std::wstring& filename)
62
62
  HANDLE hFile = INVALID_HANDLE_VALUE;
63
63
  hFile = ::CreateFile(filename.c_str(),
64
64
  GENERIC_READ,// | GENERIC_WRITE,
65
- 0,
65
+ FILE_SHARE_READ,
66
66
  NULL,
67
- OPEN_ALWAYS,
67
+ OPEN_EXISTING,
68
68
  FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN,
69
69
  NULL);
70
70
 
71
71
  if (hFile == INVALID_HANDLE_VALUE)
72
72
  {
73
73
  TRACE(_T("ERROR: failed to open '%s'\n"), Gosu::narrow(filename).c_str());
74
- TRACE(_T("ERROR: %s failed\n"), _T("CreateFile"));
74
+ TRACE(_T("ERROR: %s failed, GetLastError() = 0x%x\n"), _T("CreateFile"), (int)GetLastError());
75
75
  return filename;
76
76
  }
77
77
 
@@ -17,9 +17,6 @@ std::wstring Gosu::defaultFontName()
17
17
  return L"Arial";
18
18
  }
19
19
 
20
- // IMPR: throwLastError/check is used a lot here, Win9x doesn't provide GDI
21
- // error codes though. Wait until 9x is dead or fix this!
22
-
23
20
  namespace Gosu
24
21
  {
25
22
  std::wstring getNameFromTTFFile(const std::wstring& filename);
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.0
4
+ version: 0.8.1
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-18 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.