gosu 0.8.0 → 0.8.1
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 -0
- data/src/Text/TextTTFWin.cpp +3 -3
- data/src/Text/TextWin.cpp +0 -3
- 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: 5549ad763739952fb86e6933b99567bca3b5ce21
|
4
|
+
data.tar.gz: 8e7a4d3fc179690da283e03d57d7906e4a3a002b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b95348feb7f62e620f3ad05a0370057df79a7674dc371ac6675641af32bfd97d98a62c77c1b48a09de499db5664d4d41f6e620914164702109dbc663ace2e5e6
|
7
|
+
data.tar.gz: baa634c7cbdbe03723126ccc88c4287b382e3a22d529d5c28ddb0885de8a429d2e281391a021c0a7a143c3a487b3fb4c85c018cf28cd3112694d6303d932aae8
|
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 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" \
|
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 >(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);
|
data/src/Input/Input.cpp
CHANGED
@@ -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
|
}
|
data/src/Text/TextTTFWin.cpp
CHANGED
@@ -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
|
-
|
65
|
+
FILE_SHARE_READ,
|
66
66
|
NULL,
|
67
|
-
|
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
|
|
data/src/Text/TextWin.cpp
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|