mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02:00
linux-capture: Add x/y cursor position vars
This commit is contained in:
parent
378e910ad3
commit
0102896328
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user