From 6f158b9f7997440c49dcde674e7e19ed2decd185 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 17 Aug 2016 15:19:22 -0400 Subject: [PATCH] Fix SDL_BITSPERPIXEL --- src/SDL2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)