[Platform] Renamed MouseCursor.Rgba to Argb
This matches the default format of System.Drawing.Bitmap.
This commit is contained in:
parent
7d8f14baa7
commit
890805f2ae
3 changed files with 3 additions and 3 deletions
|
@ -493,7 +493,7 @@ namespace OpenTK.Platform.SDL2
|
|||
// the rgba values supplied by the user
|
||||
unsafe
|
||||
{
|
||||
fixed (byte* pixels = value.Rgba)
|
||||
fixed (byte* pixels = value.Argb)
|
||||
{
|
||||
IntPtr cursor_surface =
|
||||
SDL.CreateRGBSurfaceFrom(
|
||||
|
|
|
@ -1219,7 +1219,7 @@ namespace OpenTK.Platform.Windows
|
|||
Bitmap bmp;
|
||||
unsafe
|
||||
{
|
||||
fixed (byte* pixels = value.Rgba)
|
||||
fixed (byte* pixels = value.Argb)
|
||||
{
|
||||
bmp = new Bitmap(value.Width, value.Height, stride,
|
||||
System.Drawing.Imaging.PixelFormat.Format32bppArgb,
|
||||
|
|
|
@ -1483,7 +1483,7 @@ namespace OpenTK.Platform.X11
|
|||
}
|
||||
else
|
||||
{
|
||||
fixed(byte* pixels = value.Rgba)
|
||||
fixed(byte* pixels = value.Argb)
|
||||
{
|
||||
var xcursorimage = Functions.XcursorImageCreate(value.Width, value.Height);
|
||||
xcursorimage->xhot = (uint)value.X;
|
||||
|
|
Loading…
Reference in a new issue