Fix a couple SDL_pixels macros
This commit is contained in:
parent
c41fcf5b19
commit
0532deb9a6
@ -2186,9 +2186,14 @@ namespace SDL2
|
|||||||
return (byte) ((X >> 20) & 0x0F);
|
return (byte) ((X >> 20) & 0x0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static byte SDL_PIXELLAYOUT(uint X)
|
||||||
|
{
|
||||||
|
return (byte) ((X >> 16) & 0x0F);
|
||||||
|
}
|
||||||
|
|
||||||
public static byte SDL_BITSPERPIXEL(uint X)
|
public static byte SDL_BITSPERPIXEL(uint X)
|
||||||
{
|
{
|
||||||
return (byte) ((X << 16) & 0x0F);
|
return (byte) ((X >> 8) & 0x0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte SDL_BYTESPERPIXEL(uint X)
|
public static byte SDL_BYTESPERPIXEL(uint X)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user