Browse Source

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.
jp9000 11 years ago
parent
commit
6d5aecbb70
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/win-capture/cursor-capture.c

+ 3 - 0
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);