--- sdl.vapi	2017-02-01 23:45:31.548832034 +0100
+++ /usr/share/vala-0.26/vapi/sdl.vapi	2015-03-16 17:48:09.000000000 +0100
@@ -179,26 +179,27 @@
 		public static int check_video_mode(int width, int height, int bpp, uint32 flags);
 	}// Screen
 
-	[CCode (cname="SDL_PixelFormat", has_copy_function=false, has_destroy_function=false, has_type_id=false)]
-	public struct PixelFormat {
-		public Palette *palette;
-		public uint8 BitsPerPixel;
-		public uint8 BytesPerPixel;
-		public uint8 Rloss;
-		public uint8 Gloss;
-		public uint8 Bloss;
-		public uint8 Aloss;
-		public uint8 Rshift;
-		public uint8 Gshift;
-		public uint8 Bshift;
-		public uint8 Ashift;
-		public uint32 Rmask;
-		public uint32 Gmask;
-		public uint32 Bmask;
-		public uint32 Amask;
+	[CCode (cname="SDL_PixelFormat")]
+	[Compact]
+	public class PixelFormat {
+		public Palette palette;
+		public uchar BitsPerPixel;
+		public uchar BytesPerPixel;
+		public uchar Rloss;
+		public uchar Gloss;
+		public uchar Bloss;
+		public uchar Aloss;
+		public uchar Rshift;
+		public uchar Gshift;
+		public uchar Bshift;
+		public uchar Ashift;
+		public uchar Rmask;
+		public uchar Gmask;
+		public uchar Bmask;
+		public uchar Amask;
 
 		public uint32 colorkey;
-		public uint8 alpha;
+		public uchar alpha;
 
 		[CCode (cname="SDL_MapRGB")]
 		public uint32 map_rgb(uchar r, uchar g, uchar b);
@@ -235,8 +236,8 @@
 		LOGPAL, PHYSPAL
 	}// PaletteFlags
 
-	[CCode (cname="SDL_Palette", has_type_id=false)]
-	public struct Palette {
+	[CCode (cname="SDL_Palette")]
+	public class Palette {
 		[CCode (array_length_cname="ncolors")]
 		public Color[] colors;
 	}// Palette
