gosu 0.8.6.pre1 → 0.8.6

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
  SHA1:
3
- metadata.gz: cc39c3ae9a1e77e6b0519c38f7764ba3c21233e0
4
- data.tar.gz: 9f36554464a7c894e529dfce04a347aad5cda10f
3
+ metadata.gz: ed0ac66341075737207ca2339bf55a0fb6d32706
4
+ data.tar.gz: 1dfdefbffd3829dfe825abdd1c83e8eae9a6037e
5
5
  SHA512:
6
- metadata.gz: 1a5f157274188f42de5034fe336ab108e97184f59019c1143e88f3234a0e114ca171bd524511319bdeeb1e83bcdc5005f90aa3c5d0dbedf0cd86e588748e33a2
7
- data.tar.gz: 2899c718ce34b51cc2df01665b63f051bd7353fba88fae5bc12e297f7beaeba79c08089ed2dcbde84da0890774ae122797206246d642a15ccbc4d1f0f13b7564
6
+ metadata.gz: 197fba0e97d66a57276e219fcf314dd57786b008b8779e9fc4b7ec89619e8b3874157581e5e1ba14272c5fe95e51706a606dac0152ebf56fbfcb43dd097026cc
7
+ data.tar.gz: 3025dd68ae612cb1450aabbc728f63d60532ec46f85bc8fe65af53a6302474d26647901666c1dbe3c9c1a50e2204c9e1ba5d960eab5d9c53511600006ca3a523
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 5
7
- #define GOSU_VERSION "0.8.5"
6
+ #define GOSU_POINT_VERSION 6
7
+ #define GOSU_VERSION "0.8.6"
8
8
 
9
9
  #define GOSU_COPYRIGHT_NOTICE \
10
10
  "This software uses the following third-party libraries:\n" \
@@ -2297,11 +2297,11 @@ namespace Gosu
2297
2297
  }
2298
2298
  else if (width * height * 4 * sizeof(float) == RSTRING_LEN(blob))
2299
2299
  {
2300
- // 32 bit per channel, assume float/float/float/float
2300
+ // 128 bit per channel, assume float/float/float/float
2301
2301
  const float* in = reinterpret_cast<const float*>(RSTRING_PTR(blob));
2302
2302
  Gosu::Color::Channel* out = reinterpret_cast<Gosu::Color::Channel*>(bitmap.data());
2303
2303
  for (int i = width * height * 4; i > 0; --i)
2304
- *(out++) = *(in++) * 255;
2304
+ *(out++) = static_cast<Color::Channel>(*(in++) * 255);
2305
2305
  }
2306
2306
  else
2307
2307
  throw std::logic_error("Blob length mismatch!");
@@ -10876,8 +10876,8 @@ SWIGEXPORT void Init_gosu(void) {
10876
10876
  SWIG_RubyInitializeTrackings();
10877
10877
  rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
10878
10878
  rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(8)));
10879
- rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(5)));
10880
- rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.5"));
10879
+ rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(6)));
10880
+ rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.6"));
10881
10881
  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"));
10882
10882
  rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
10883
10883
  rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
@@ -128,7 +128,7 @@ namespace Gosu
128
128
  FREE_IMAGE_FORMAT fif = FreeImage_GetFileType(utf8Filename.c_str());
129
129
  FIBITMAP* fib = FreeImage_Load(fif, utf8Filename.c_str(), GOSU_FIFLAGS);
130
130
  #endif
131
- checkForFreeImageErrors(fib);
131
+ checkForFreeImageErrors(fib != 0);
132
132
  fibToBitmap(bitmap, fib, fif);
133
133
  }
134
134
 
@@ -140,7 +140,7 @@ namespace Gosu
140
140
  FIMEMORY* fim = FreeImage_OpenMemory(&data[0], data.size());
141
141
  FREE_IMAGE_FORMAT fif = FreeImage_GetFileTypeFromMemory(fim);
142
142
  FIBITMAP* fib = FreeImage_LoadFromMemory(fif, fim, GOSU_FIFLAGS);
143
- checkForFreeImageErrors(fib);
143
+ checkForFreeImageErrors(fib != 0);
144
144
  fibToBitmap(bitmap, fib, fif);
145
145
  }
146
146
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  #ifdef GOSU_IS_WIN
4
4
  #include <windows.h>
5
- // Note: This does not use the SDL2 variant below, which reports 2560x1920 in my Windows VM, which is running at 2560x1080. Last checked with SDL 2.0.3.
6
- // TODO: Try this on a real Windows machine.
5
+
6
+ // Note: On Windows, do not use the SDL 2 code below. It reports 2560x1920 in my Windows VM, which is running at 2560x1080. (SDL 2.0.3)
7
7
 
8
8
  unsigned Gosu::screenWidth()
9
9
  {
@@ -15,7 +15,6 @@ unsigned Gosu::screenHeight()
15
15
  return GetSystemMetrics(SM_CYSCREEN);
16
16
  }
17
17
 
18
- // Note: It is okay for this couple of functions to be OS-specific.
19
18
  namespace
20
19
  {
21
20
  SIZE calculateAvailableSize()
@@ -4,7 +4,7 @@
4
4
  #include <Gosu/Utility.hpp>
5
5
 
6
6
  // Adapted from http://www.codeproject.com/KB/GDI/xfont.aspx.
7
- // Credits go to Philip Patrick and Hans Dietrich!
7
+ // Kudos to Philip Patrick and Hans Dietrich!
8
8
 
9
9
  struct FONT_PROPERTIES_ANSI
10
10
  {
data/src/Window.cpp CHANGED
@@ -58,8 +58,6 @@ Gosu::Window::Window(unsigned width, unsigned height, bool fullscreen, double up
58
58
  }
59
59
  }
60
60
  else {
61
- // TODO - get platform-specific best width/height we could get
62
-
63
61
  double maxWidth = Gosu::availableWidth();
64
62
  double maxHeight = Gosu::availableHeight();
65
63
 
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.6.pre1
4
+ version: 0.8.6
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-11-09 00:00:00.000000000 Z
11
+ date: 2014-12-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.
@@ -175,12 +175,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
175
  version: 1.8.2
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>'
178
+ - - '>='
179
179
  - !ruby/object:Gem::Version
180
- version: 1.3.1
180
+ version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.3.0
183
+ rubygems_version: 2.4.2
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: 2D game development library.