[vala/wip/sdl2] sdl2: More fixes



commit f655af5b545b13badc38e21faea96055c0cc27ad
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Feb 6 19:03:02 2021 +0100

    sdl2: More fixes

 vapi/sdl2.vapi | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/vapi/sdl2.vapi b/vapi/sdl2.vapi
index 987c81f32..13ba808eb 100644
--- a/vapi/sdl2.vapi
+++ b/vapi/sdl2.vapi
@@ -2378,20 +2378,11 @@ namespace SDL {
 
                [CCode (cprefix = "SDL_", cname = "SDL_RendererInfo", cheader_filename = "SDL2/SDL_render.h")]
                public struct RendererInfo {
-
                        public unowned string name;
                        public uint32 flags;
-
-                       [CCode (cname = "num_texture_formats")]
                        public uint32 num_texture_formats;
-
-                       [CCode (cname = "texture_formats")]
                        public Video.PixelFormat texture_formats[16];
-
-                       [CCode (cname = "max_texture_width")]
                        public int max_texture_width;
-
-                       [CCode (cname = "texture_formats")]
                        public int max_texture_height;
                }// RendererInfo
 
@@ -2505,8 +2496,8 @@ namespace SDL {
                        [CCode (cname = "SDL_RenderDrawRect")]
                        public int draw_rect (Video.Rect? rect);
 
-                       [CCode (cname = "SDL_RenderDrawRect")]
-                       public int draw_rects (Video.Rect? rect);
+                       [CCode (cname = "SDL_RenderDrawRects")]
+                       public int draw_rects (Video.Rect[] rects);
 
                        [CCode (cname = "SDL_RenderFillRect")]
                        public int fill_rect (Video.Rect? rect);
@@ -4032,7 +4023,7 @@ namespace SDL {
                [SimpleType]
                public struct HapticDirection {
                        public DirectionType type;
-                       public int32 dir;
+                       public int32 dir[3];
                }
                [CCode (cname = "SDL_HapticPeriodic", cheader_filename = "SDL2/SDL_haptic.h")]
                public struct HapticPeriodic {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]