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.
master
jp9000 2015-01-04 03:35:34 -08:00
parent 6a85407270
commit 6d5aecbb70
1 changed files with 3 additions and 0 deletions

View File

@ -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);