mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
Make clients graphics use lighter random colors.
This commit is contained in:
parent
48a33baec7
commit
d311e8a061
1 changed files with 4 additions and 4 deletions
8
client.c
8
client.c
|
|
@ -70,10 +70,10 @@ static void
|
||||||
set_random_color(cairo_t *cr)
|
set_random_color(cairo_t *cr)
|
||||||
{
|
{
|
||||||
cairo_set_source_rgba(cr,
|
cairo_set_source_rgba(cr,
|
||||||
(random() % 100) / 99.0,
|
0.5 + (random() % 50) / 49.0,
|
||||||
(random() % 100) / 99.0,
|
0.5 + (random() % 50) / 49.0,
|
||||||
(random() % 100) / 99.0,
|
0.5 + (random() % 50) / 49.0,
|
||||||
(random() % 100) / 99.0);
|
0.5 + (random() % 100) / 99.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue