[X11] Fixed INativeWindow.Cursor getter

This commit is contained in:
thefiddler 2014-04-27 22:28:10 +02:00
parent d03e9d82dc
commit 96b7419d83

View file

@ -1485,7 +1485,7 @@ namespace OpenTK.Platform.X11
{ {
fixed(byte* pixels = value.Rgba) 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->xhot = (uint)value.X;
xcursorimage->yhot = (uint)value.Y; xcursorimage->yhot = (uint)value.Y;
xcursorimage->pixels = (uint*)pixels; xcursorimage->pixels = (uint*)pixels;
@ -1495,6 +1495,7 @@ namespace OpenTK.Platform.X11
Functions.XcursorImageDestroy(xcursorimage); Functions.XcursorImageDestroy(xcursorimage);
} }
} }
cursor = value;
} }
} }
} }