mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Fix IBeam cursor change.
This commit is contained in:
parent
5de3026c56
commit
6f71ede67e
@ -90,18 +90,19 @@ namespace Remotely_ScreenCast.Capture
|
||||
if (currentCursor == Cursors.IBeam.Handle.ToString())
|
||||
{
|
||||
OnChange?.Invoke(this, new CursorInfo(new byte[0], Point.Empty, "text"));
|
||||
return;
|
||||
}
|
||||
|
||||
using (var icon = Icon.FromHandle(cursorInfo.hCursor))
|
||||
else
|
||||
{
|
||||
using (var ms = new MemoryStream())
|
||||
using (var icon = Icon.FromHandle(cursorInfo.hCursor))
|
||||
{
|
||||
using (var cursor = new Cursor(cursorInfo.hCursor))
|
||||
using (var ms = new MemoryStream())
|
||||
{
|
||||
var hotspot = cursor.HotSpot;
|
||||
icon.ToBitmap().Save(ms, ImageFormat.Png);
|
||||
OnChange?.Invoke(this, new CursorInfo(ms.ToArray(), hotspot));
|
||||
using (var cursor = new Cursor(cursorInfo.hCursor))
|
||||
{
|
||||
var hotspot = cursor.HotSpot;
|
||||
icon.ToBitmap().Save(ms, ImageFormat.Png);
|
||||
OnChange?.Invoke(this, new CursorInfo(ms.ToArray(), hotspot));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user