gosu 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/include/Gosu/Version.hpp +1 -1
- data/src/Audio.cpp +2 -0
- data/src/RubyGosu.cxx +1 -1
- data/src/Window.cpp +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a718ab538c3905dac47347a2ab8d60e62a971757f50b7b01c8b2da66c210513
|
4
|
+
data.tar.gz: 16867f7bb311a2bfed473d4eba4c4b326f27ce50fb52272864c78e6f94debb74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3498f845869aa18765265ac725af104ab1320ca4b036cf4559382ac0e87b8d79efc9cdf43ab0ba6e2ba8e14653885a1e711e9fd1684c94411ee7fdcfe9fe0fd
|
7
|
+
data.tar.gz: 0d519c817a33644b2d9095a33a27814bcef61cde00a6335998a2e685740b728c952de4a7c3ff65b5145264d70d9629a6ea4541093063b570c16984f0cb560bad
|
data/include/Gosu/Version.hpp
CHANGED
data/src/Audio.cpp
CHANGED
@@ -148,6 +148,8 @@ public:
|
|
148
148
|
|
149
149
|
alSourceStop(source);
|
150
150
|
|
151
|
+
alSourcei(source, AL_BUFFER, AL_NONE);
|
152
|
+
|
151
153
|
// Dequeue all buffers for this source.
|
152
154
|
// The number of QUEUED buffers apparently includes the number of PROCESSED ones,
|
153
155
|
// so getting rid of the QUEUED ones is enough.
|
data/src/RubyGosu.cxx
CHANGED
@@ -12486,7 +12486,7 @@ SWIGEXPORT void Init_gosu(void) {
|
|
12486
12486
|
rb_define_const(mGosu, "LICENSES", SWIG_From_std_string(static_cast< std::string >(Gosu::LICENSES)));
|
12487
12487
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(1)));
|
12488
12488
|
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(4)));
|
12489
|
-
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(
|
12489
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(1)));
|
12490
12490
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
12491
12491
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
12492
12492
|
rb_define_module_function(mGosu, "degrees_to_radians", VALUEFUNC(_wrap_degrees_to_radians), -1);
|
data/src/Window.cpp
CHANGED
@@ -273,7 +273,7 @@ void Gosu::Window::show()
|
|
273
273
|
while (tick()) {
|
274
274
|
// Sleep to keep this loop from eating 100% CPU.
|
275
275
|
unsigned long tick_time = milliseconds() - time_before_tick;
|
276
|
-
double sleep_time =
|
276
|
+
double sleep_time = update_interval() - tick_time;
|
277
277
|
if (sleep_time >= 1) {
|
278
278
|
sleep(static_cast<unsigned long>(sleep_time));
|
279
279
|
}
|
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: 1.4.
|
4
|
+
version: 1.4.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: 2022-01-
|
11
|
+
date: 2022-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|