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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98e9ee1c852cb1d1a27cfebd4f4e2e28eed5348feb2ec1e5a26970ab16ceadca
4
- data.tar.gz: 2191e45a7decbf43a919dd1acd9517bd778572893475d9c6801c6f4109b04afa
3
+ metadata.gz: 0a718ab538c3905dac47347a2ab8d60e62a971757f50b7b01c8b2da66c210513
4
+ data.tar.gz: 16867f7bb311a2bfed473d4eba4c4b326f27ce50fb52272864c78e6f94debb74
5
5
  SHA512:
6
- metadata.gz: 8827283b9324763479b211360259fb85798d9a33e91cd14aace844ad50ac78bb7668255d32bc82c8873229ec16f12c32be44ecbc8facb998cf6756ca47c3b212
7
- data.tar.gz: 6544155d5b65c73e653ac7172dfe9ab89f6ca079a4fc1daea3bc14d4db23c0b77b15c638049d6f9ee3b69699c546450ae6a40f1f7d88a81d095c67482a59ded4
6
+ metadata.gz: a3498f845869aa18765265ac725af104ab1320ca4b036cf4559382ac0e87b8d79efc9cdf43ab0ba6e2ba8e14653885a1e711e9fd1684c94411ee7fdcfe9fe0fd
7
+ data.tar.gz: 0d519c817a33644b2d9095a33a27814bcef61cde00a6335998a2e685740b728c952de4a7c3ff65b5145264d70d9629a6ea4541093063b570c16984f0cb560bad
@@ -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 0
7
+ #define GOSU_POINT_VERSION 1
8
8
 
9
9
  namespace Gosu
10
10
  {
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 >(0)));
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 = tick_time - update_interval();
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2022-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.