mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 19:35:29 +00:00
[X11] Fixed INativeWindow.Cursor getter
This commit is contained in:
parent
d03e9d82dc
commit
96b7419d83
|
@ -1485,7 +1485,7 @@ namespace OpenTK.Platform.X11
|
|||
{
|
||||
fixed(byte* pixels = value.Rgba)
|
||||
{
|
||||
var xcursorimage = Functions.XcursorImageCreate(32, 32);
|
||||
var xcursorimage = Functions.XcursorImageCreate(value.Width, value.Height);
|
||||
xcursorimage->xhot = (uint)value.X;
|
||||
xcursorimage->yhot = (uint)value.Y;
|
||||
xcursorimage->pixels = (uint*)pixels;
|
||||
|
@ -1495,6 +1495,7 @@ namespace OpenTK.Platform.X11
|
|||
Functions.XcursorImageDestroy(xcursorimage);
|
||||
}
|
||||
}
|
||||
cursor = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue