mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-22 13:51:10 +00:00
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);
|
||||
}
|
||||
|
||||
public static byte SDL_PIXELLAYOUT(uint X)
|
||||
{
|
||||
return (byte) ((X >> 16) & 0x0F);
|
||||
}
|
||||
|
||||
public static byte SDL_BITSPERPIXEL(uint X)
|
||||
{
|
||||
return (byte) ((X << 16) & 0x0F);
|
||||
return (byte) ((X >> 8) & 0x0F);
|
||||
}
|
||||
|
||||
public static byte SDL_BYTESPERPIXEL(uint X)
|
||||
|
|
Loading…
Reference in a new issue