ruby-sdl2 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -1
- data/extconf.rb +3 -1
- data/lib/sdl2/version.rb +1 -1
- data/video.c.m4 +7 -4
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 016174bf93fa2371562b5b7db39fad4ba4fe56ca33224bd426f124f71089c3f9
|
4
|
+
data.tar.gz: 4429f621dc957430f6532151481b4bfcaa10491bb5591a335d10b8f696e89769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a2c0cb576204313adb1d8d1483d4f535366a4be0e2d33fc60c9bbe218197cae990031af9c0e7302fa8ff3051aa4e2f4b7664d9058313a0902d394c80dd4480a
|
7
|
+
data.tar.gz: 512fab96cd60f418159b7846b2891304458a88e4f58f5686683a3bfc00831834ae2a87d68683198d3716d60d00fe4b5bf1c689b9335d2e9b5139ed5475f91bc2
|
data/Rakefile
CHANGED
data/extconf.rb
CHANGED
@@ -53,6 +53,8 @@ have_header("SDL_filesystem.h")
|
|
53
53
|
have_const("MIX_INIT_MODPLUG", "SDL_mixer.h")
|
54
54
|
have_const("MIX_INIT_FLUIDSYNTH", "SDL_mixer.h")
|
55
55
|
have_const("MIX_INIT_MID", "SDL_mixer.h")
|
56
|
-
|
56
|
+
have_const("SDL_RENDERER_PRESENTVSYNC", "SDL_render.h")
|
57
|
+
have_const("SDL_WINDOW_ALLOW_HIGHDPI", "SDL_video.h")
|
58
|
+
have_const("SDL_WINDOW_MOUSE_CAPTURE", "SDL_video.h")
|
57
59
|
|
58
60
|
create_makefile('sdl2_ext')
|
data/lib/sdl2/version.rb
CHANGED
data/video.c.m4
CHANGED
@@ -426,7 +426,10 @@ VALUE find_window_by_id(Uint32 id)
|
|
426
426
|
*/
|
427
427
|
static VALUE Window_destroy(VALUE self)
|
428
428
|
{
|
429
|
-
|
429
|
+
Window* w = Get_Window(self);
|
430
|
+
Window_destroy_internal(w);
|
431
|
+
SDL_DestroyWindow(w->window);
|
432
|
+
w->window = NULL;
|
430
433
|
return Qnil;
|
431
434
|
}
|
432
435
|
|
@@ -2863,11 +2866,11 @@ void rubysdl2_init_video(void)
|
|
2863
2866
|
DEFINE_WINDOW_FLAGS_CONST(MOUSE_FOCUS);
|
2864
2867
|
/* window is not created by SDL */
|
2865
2868
|
DEFINE_WINDOW_FLAGS_CONST(FOREIGN);
|
2866
|
-
#ifdef
|
2869
|
+
#ifdef HAVE_CONST_SDL_WINDOW_ALLOW_HIGHDPI
|
2867
2870
|
/* window should be created in high-DPI mode if supported (>= SDL 2.0.1)*/
|
2868
2871
|
DEFINE_WINDOW_FLAGS_CONST(ALLOW_HIGHDPI);
|
2869
2872
|
#endif
|
2870
|
-
#ifdef
|
2873
|
+
#ifdef HAVE_CONST_SDL_WINDOW_MOUSE_CAPTURE
|
2871
2874
|
/* window has mouse caputred (>= SDL 2.0.4) */
|
2872
2875
|
DEFINE_WINDOW_FLAGS_CONST(MOUSE_CAPTURE);
|
2873
2876
|
#endif
|
@@ -2942,7 +2945,7 @@ void rubysdl2_init_video(void)
|
|
2942
2945
|
DEFINE_RENDERER_FLAGS_CONST(SOFTWARE);
|
2943
2946
|
/* the renderer uses hardware acceleration */
|
2944
2947
|
DEFINE_RENDERER_FLAGS_CONST(ACCELERATED);
|
2945
|
-
#ifdef
|
2948
|
+
#ifdef HAVE_CONST_SDL_RENDERER_PRESENTVSYNC
|
2946
2949
|
/* present is synchronized with the refresh rate */
|
2947
2950
|
DEFINE_RENDERER_FLAGS_CONST(PRESENTVSYNC);
|
2948
2951
|
#endif
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-sdl2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ippei Obayashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Ruby/SDL2 is an extension library to use SDL 2.x
|
@@ -98,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
|
-
|
102
|
-
rubygems_version: 2.7.6
|
101
|
+
rubygems_version: 3.0.3
|
103
102
|
signing_key:
|
104
103
|
specification_version: 4
|
105
104
|
summary: The simple ruby extension library for SDL 2.x
|