gosu 0.7.27 → 0.7.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gosu/ButtonsMac.hpp +1 -1
- data/Gosu/ButtonsWin.hpp +1 -1
- data/Gosu/ButtonsX.hpp +1 -1
- data/Gosu/Version.hpp +1 -1
- data/GosuImpl/Audio/AudioSDL.cpp +1 -1
- data/GosuImpl/RubyGosu_wrap.cxx +1 -1
- data/GosuImpl/WindowX.cpp +2 -2
- data/linux/extconf.rb +40 -20
- metadata +4 -3
data/Gosu/ButtonsMac.hpp
CHANGED
data/Gosu/ButtonsWin.hpp
CHANGED
data/Gosu/ButtonsX.hpp
CHANGED
data/Gosu/Version.hpp
CHANGED
data/GosuImpl/Audio/AudioSDL.cpp
CHANGED
data/GosuImpl/RubyGosu_wrap.cxx
CHANGED
|
@@ -10982,7 +10982,7 @@ SWIGEXPORT void Init_gosu(void) {
|
|
|
10982
10982
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
|
|
10983
10983
|
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(7)));
|
|
10984
10984
|
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(27)));
|
|
10985
|
-
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.7.27"));
|
|
10985
|
+
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.7.27.1"));
|
|
10986
10986
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
|
10987
10987
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
|
10988
10988
|
rb_define_module_function(mGosu, "degrees_to_radians", VALUEFUNC(_wrap_degrees_to_radians), -1);
|
data/GosuImpl/WindowX.cpp
CHANGED
|
@@ -160,12 +160,12 @@ struct Gosu::Window::Impl
|
|
|
160
160
|
|
|
161
161
|
if (showingCursor && !window->needsCursor())
|
|
162
162
|
{
|
|
163
|
-
|
|
163
|
+
XDefineCursor(display, this->window, emptyCursor);
|
|
164
164
|
showingCursor = false;
|
|
165
165
|
}
|
|
166
166
|
else if (!showingCursor && window->needsCursor())
|
|
167
167
|
{
|
|
168
|
-
|
|
168
|
+
XUndefineCursor(display, this->window);
|
|
169
169
|
showingCursor = true;
|
|
170
170
|
}
|
|
171
171
|
|
data/linux/extconf.rb
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
WINDOWS_HINTS = %w(-win32 win32- mswin mingw32)
|
|
4
|
+
|
|
5
|
+
if defined? RUBY_PLATFORM and WINDOWS_HINTS.any? { |hint| RUBY_PLATFORM.include? hint } then
|
|
6
|
+
puts 'This gem is not meant to be installed on Windows. Instead, please use:'
|
|
6
7
|
puts 'gem install gosu --platform=i386-mingw32'
|
|
7
8
|
exit 1
|
|
8
9
|
end
|
|
@@ -13,36 +14,55 @@ puts 'http://code.google.com/p/gosu/wiki/GettingStartedOnLinux'
|
|
|
13
14
|
puts
|
|
14
15
|
|
|
15
16
|
# FIXME should reversely filter out files ending in Win, Mac, Touch, AL etc.
|
|
16
|
-
SOURCE_FILES =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
SOURCE_FILES = %w(
|
|
18
|
+
Audio/AudioSDL.cpp
|
|
19
|
+
DirectoriesUnix.cpp
|
|
20
|
+
FileUnix.cpp
|
|
21
|
+
Graphics/Bitmap.cpp
|
|
22
|
+
Graphics/BitmapBMP.cpp
|
|
23
|
+
Graphics/BitmapColorKey.cpp
|
|
24
|
+
Graphics/BitmapPNG.cpp
|
|
25
|
+
Graphics/BitmapUtils.cpp
|
|
26
|
+
Graphics/BlockAllocator.cpp
|
|
27
|
+
Graphics/Color.cpp
|
|
28
|
+
Graphics/Font.cpp
|
|
29
|
+
Graphics/Graphics.cpp
|
|
30
|
+
Graphics/Image.cpp
|
|
31
|
+
Graphics/LargeImageData.cpp
|
|
32
|
+
Graphics/TexChunk.cpp
|
|
33
|
+
Graphics/Text.cpp
|
|
34
|
+
Graphics/TextUnix.cpp
|
|
35
|
+
Graphics/Texture.cpp
|
|
36
|
+
Graphics/Transform.cpp
|
|
37
|
+
InputX.cpp
|
|
38
|
+
Inspection.cpp
|
|
39
|
+
IO.cpp
|
|
40
|
+
Math.cpp
|
|
41
|
+
RubyGosu_wrap.cxx
|
|
42
|
+
TextInputX.cpp
|
|
43
|
+
TimingUnix.cpp
|
|
44
|
+
Utility.cpp
|
|
45
|
+
WindowX.cpp
|
|
46
|
+
)
|
|
26
47
|
|
|
27
48
|
require 'mkmf'
|
|
28
49
|
|
|
29
50
|
# Copy all relevant C++ files into the current directory
|
|
30
|
-
# FIXME
|
|
51
|
+
# FIXME Could be done by gem task instead.
|
|
31
52
|
SOURCE_FILES.each { |file| `cp ../GosuImpl/#{file} #{File.basename(file)}` }
|
|
32
53
|
|
|
33
54
|
# Symlink our pretty gosu.so into ../lib
|
|
34
|
-
# FIXME gosu.rb should just look in the right place
|
|
55
|
+
# FIXME gosu.rb should just look in the right place.
|
|
35
56
|
`ln -s ../linux/gosu.so ../lib/gosu.so`
|
|
36
57
|
|
|
37
58
|
sdl_config = with_config("sdl-config", "sdl-config")
|
|
38
|
-
|
|
39
|
-
pango_config = "pkg-config pangoft2" # FIXME should probably use with_config
|
|
59
|
+
pango_config = "pkg-config pangoft2"
|
|
40
60
|
|
|
41
|
-
$INCFLAGS << " -I../ -I../GosuImpl `#{sdl_config} --cflags` `#{
|
|
42
|
-
$LDFLAGS << " `#{sdl_config} --libs` `#{
|
|
61
|
+
$INCFLAGS << " -I../ -I../GosuImpl `#{sdl_config} --cflags` `#{pango_config} --cflags`"
|
|
62
|
+
$LDFLAGS << " `#{sdl_config} --libs` `#{pango_config} --libs` -lX11"
|
|
63
|
+
have_header('SDL_mixer.h') if have_library('SDL_mixer', 'Mix_OpenAudio')
|
|
43
64
|
have_header('SDL_ttf.h') if have_library('SDL_ttf', 'TTF_RenderUTF8_Blended')
|
|
44
65
|
have_header('gl.h') if have_library('GL', 'glMatrixMode')
|
|
45
66
|
have_header('png.h') if have_library('png', 'png_sig_cmp')
|
|
46
67
|
|
|
47
68
|
create_makefile("gosu")
|
|
48
|
-
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gosu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 7
|
|
9
9
|
- 27
|
|
10
|
-
|
|
10
|
+
- 1
|
|
11
|
+
version: 0.7.27.1
|
|
11
12
|
platform: ruby
|
|
12
13
|
authors:
|
|
13
14
|
- Julian Raschke
|
|
@@ -16,7 +17,7 @@ autorequire:
|
|
|
16
17
|
bindir: bin
|
|
17
18
|
cert_chain: []
|
|
18
19
|
|
|
19
|
-
date: 2011-
|
|
20
|
+
date: 2011-02-07 00:00:00 +08:00
|
|
20
21
|
default_executable:
|
|
21
22
|
dependencies: []
|
|
22
23
|
|