Fix a couple SDL_pixels macros

This commit is contained in:
Ethan Lee 2015-09-13 16:03:16 -04:00
parent c41fcf5b19
commit 0532deb9a6

View file

@ -2186,9 +2186,14 @@ namespace SDL2
return (byte) ((X >> 20) & 0x0F); return (byte) ((X >> 20) & 0x0F);
} }
public static byte SDL_PIXELLAYOUT(uint X)
{
return (byte) ((X >> 16) & 0x0F);
}
public static byte SDL_BITSPERPIXEL(uint X) public static byte SDL_BITSPERPIXEL(uint X)
{ {
return (byte) ((X << 16) & 0x0F); return (byte) ((X >> 8) & 0x0F);
} }
public static byte SDL_BYTESPERPIXEL(uint X) public static byte SDL_BYTESPERPIXEL(uint X)