Fix SDL_BITSPERPIXEL

This commit is contained in:
Ethan Lee 2016-08-17 15:19:22 -04:00
parent cceef27e50
commit 6f158b9f79

View file

@ -2385,7 +2385,7 @@ namespace SDL2
public static byte SDL_BITSPERPIXEL(uint X) public static byte SDL_BITSPERPIXEL(uint X)
{ {
return (byte) ((X >> 8) & 0x0F); return (byte) ((X >> 8) & 0xFF);
} }
public static byte SDL_BYTESPERPIXEL(uint X) public static byte SDL_BYTESPERPIXEL(uint X)