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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f95c74e52e49585949f9d7f5c0af95bbd09ddee0738492fe8973a74a2430137
4
- data.tar.gz: 8fbf827e6d76e83c3e67c51767538ced99470f9d578b324a8f53f045af282927
3
+ metadata.gz: 44607a2ab15d11917e1a6106352fe652cd4aab595b1193d44f946a0184309647
4
+ data.tar.gz: 6facb9f07929562d2d7d3a58ddcc90fa6afbda6db4d9f1fd42d629a1b4a06a0b
5
5
  SHA512:
6
- metadata.gz: a75b9ac5f9bf1df4eef813199b05bc99d8645d622cb13c985331a5da70106a83641a064c186aaf0b8755a326832cb8033c77533a5bae51d3443c7dfa30681a7e
7
- data.tar.gz: 683f1785588d95076f5878b7e8bc778393a60fbc2ed3427684d1e4bd041e600498735a1d66dba5bc4acf756cffa6637bb2ff5e2177a22bd3c9d9a5092a995459
6
+ metadata.gz: 83afbc1d09db1f2545ff570d7674e9f770d95353d1614ef45f2d3c1e580f191a4cb6589af161767ca942fa7309786fa06155a4c2ac342cf08864f04383078eb0
7
+ data.tar.gz: 6255e2435e6e85c63adbdad2cfcf3f48b9204d982b2a3f07bbc3de7757d44850f456a4bf1863de733386edbcdd6b2800b5bae599e08964a9837a7836ee140998
@@ -4,7 +4,7 @@
4
4
 
5
5
  #define GOSU_MAJOR_VERSION 1
6
6
  #define GOSU_MINOR_VERSION 4
7
- #define GOSU_POINT_VERSION 4
7
+ #define GOSU_POINT_VERSION 5
8
8
 
9
9
  namespace Gosu
10
10
  {
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 >(4)));
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
- std::this_thread::sleep_for(std::chrono::milliseconds{sleep_time});
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
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-12 00:00:00.000000000 Z
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: '0'
305
+ version: 1.3.1
306
306
  requirements: []
307
307
  rubygems_version: 3.3.11
308
308
  signing_key: