Fix SDL_BITSPERPIXEL
This commit is contained in:
parent
cceef27e50
commit
6f158b9f79
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user