diff --git a/src/SDL2.cs b/src/SDL2.cs index 62a7c0e..690f5ae 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -2385,7 +2385,7 @@ namespace SDL2 public static byte SDL_BITSPERPIXEL(uint X) { - return (byte) ((X >> 8) & 0x0F); + return (byte) ((X >> 8) & 0xFF); } public static byte SDL_BYTESPERPIXEL(uint X)