mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-10 19:25:28 +00:00
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…
Reference in a new issue