mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
video-src: set valid cursor id
This commit is contained in:
parent
7f52246caf
commit
5390079b4a
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ static void on_timeout(void *userdata, uint64_t expirations)
|
||||||
struct spa_meta_bitmap *mb;
|
struct spa_meta_bitmap *mb;
|
||||||
uint32_t *bitmap, color;
|
uint32_t *bitmap, color;
|
||||||
|
|
||||||
mcs->id = 0;
|
mcs->id = 1; /* 0 is invalid cursor, anything else is valid */
|
||||||
mcs->position.x = (sin(data->accumulator) + 1.0) * 160.0 + 80;
|
mcs->position.x = (sin(data->accumulator) + 1.0) * 160.0 + 80;
|
||||||
mcs->position.y = (cos(data->accumulator) + 1.0) * 100.0 + 50;
|
mcs->position.y = (cos(data->accumulator) + 1.0) * 100.0 + 50;
|
||||||
mcs->hotspot.x = 0;
|
mcs->hotspot.x = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue