gosu 1.4.4 → 1.4.5.pre1
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/RubyGosu.cxx +1 -1
- data/src/Window.cpp +3 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44607a2ab15d11917e1a6106352fe652cd4aab595b1193d44f946a0184309647
|
4
|
+
data.tar.gz: 6facb9f07929562d2d7d3a58ddcc90fa6afbda6db4d9f1fd42d629a1b4a06a0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83afbc1d09db1f2545ff570d7674e9f770d95353d1614ef45f2d3c1e580f191a4cb6589af161767ca942fa7309786fa06155a4c2ac342cf08864f04383078eb0
|
7
|
+
data.tar.gz: 6255e2435e6e85c63adbdad2cfcf3f48b9204d982b2a3f07bbc3de7757d44850f456a4bf1863de733386edbcdd6b2800b5bae599e08964a9837a7836ee140998
|
data/include/Gosu/Version.hpp
CHANGED
data/src/RubyGosu.cxx
CHANGED
@@ -12527,7 +12527,7 @@ SWIGEXPORT void Init_gosu(void) {
|
|
12527
12527
|
rb_define_const(mGosu, "LICENSES", SWIG_From_std_string(static_cast< std::string >(Gosu::LICENSES)));
|
12528
12528
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(1)));
|
12529
12529
|
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(4)));
|
12530
|
-
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(
|
12530
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(5)));
|
12531
12531
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
12532
12532
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
12533
12533
|
rb_define_module_function(mGosu, "degrees_to_radians", VALUEFUNC(_wrap_degrees_to_radians), -1);
|
data/src/Window.cpp
CHANGED
@@ -11,7 +11,6 @@
|
|
11
11
|
#include <SDL.h>
|
12
12
|
#include <algorithm>
|
13
13
|
#include <stdexcept>
|
14
|
-
#include <thread>
|
15
14
|
|
16
15
|
namespace Gosu
|
17
16
|
{
|
@@ -273,10 +272,10 @@ void Gosu::Window::show()
|
|
273
272
|
try {
|
274
273
|
while (tick()) {
|
275
274
|
// Sleep to keep this loop from eating 100% CPU.
|
276
|
-
long tick_time = milliseconds() - time_before_tick;
|
277
|
-
long sleep_time = static_cast<long>(update_interval() - tick_time);
|
275
|
+
unsigned long tick_time = milliseconds() - time_before_tick;
|
276
|
+
long sleep_time = static_cast<long>(update_interval() - static_cast<double>(tick_time));
|
278
277
|
if (sleep_time >= 1) {
|
279
|
-
|
278
|
+
Gosu::sleep(sleep_time);
|
280
279
|
}
|
281
280
|
|
282
281
|
time_before_tick = milliseconds();
|
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.5.pre1
|
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-12-
|
11
|
+
date: 2022-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|
@@ -300,9 +300,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
300
300
|
version: 2.5.0
|
301
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
302
|
requirements:
|
303
|
-
- - "
|
303
|
+
- - ">"
|
304
304
|
- !ruby/object:Gem::Version
|
305
|
-
version:
|
305
|
+
version: 1.3.1
|
306
306
|
requirements: []
|
307
307
|
rubygems_version: 3.3.11
|
308
308
|
signing_key:
|