From 6d5aecbb70317ce322a25041c75936106b38619a Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 4 Jan 2015 03:35:34 -0800 Subject: [PATCH] win-capture: Fix cursor hotspot bug Did I just.. forget to have it save the cursor hotspot? You have to have the cursor hotspot to draw it correctly. --- plugins/win-capture/cursor-capture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/win-capture/cursor-capture.c b/plugins/win-capture/cursor-capture.c index 76a63190a..735f7b54d 100644 --- a/plugins/win-capture/cursor-capture.c +++ b/plugins/win-capture/cursor-capture.c @@ -154,6 +154,9 @@ static inline bool cursor_capture_icon(struct cursor_data *data, HICON icon) data->texture = gs_texture_create(width, height, GS_BGRA, 1, &bitmap, 0); bfree(bitmap); + + data->x_hotspot = ii.xHotspot; + data->y_hotspot = ii.yHotspot; } DeleteObject(ii.hbmColor);