0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

linux-capture: Add x/y cursor position vars

This commit is contained in:
jp9000 2014-08-29 17:11:30 -07:00
parent 378e910ad3
commit 0102896328
2 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,9 @@ void xcursor_tick(xcursor_t *data) {
if (!data->tex || data->last_serial != xc->cursor_serial)
xcursor_create(data, xc);
data->x = (int_fast32_t)xc->x - (int_fast32_t)data->x_org;
data->y = (int_fast32_t)xc->y - (int_fast32_t)data->y_org;
data->render_x = xc->x - xc->xhot - data->x_org;
data->render_y = xc->y - xc->yhot - data->y_org;

View File

@ -32,6 +32,7 @@ typedef struct {
uint_fast32_t last_height;
gs_texture_t tex;
int_fast32_t x, y;
int_fast32_t x_org;
int_fast32_t y_org;
} xcursor_t;