projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c110240
)
terminal: reduce speed of morphing colors in modeset test
author
David Herrmann
<dh.herrmann@gmail.com>
Sat, 20 Sep 2014 07:45:26 +0000
(09:45 +0200)
committer
David Herrmann
<dh.herrmann@gmail.com>
Sat, 20 Sep 2014 09:46:49 +0000
(11:46 +0200)
The high frequency of the color-morphing is kinda irritating. Reduce it
to a much lower frequency so you can actually look at it longer than few
seconds.
src/libsystemd-terminal/modeset.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-terminal/modeset.c
b/src/libsystemd-terminal/modeset.c
index 02ed1a898750866461d78c62f29937db56cc1f72..c1119c9e0fde6f366df7b569a563bbff2fbe787b 100644
(file)
--- a/
src/libsystemd-terminal/modeset.c
+++ b/
src/libsystemd-terminal/modeset.c
@@
-252,9
+252,9
@@
static void modeset_draw(Modeset *m, const grdev_display_target *t) {
static void modeset_render(Modeset *m, grdev_display *d) {
const grdev_display_target *t;
- m->r = next_color(&m->r_up, m->r,
20
);
- m->g = next_color(&m->g_up, m->g,
10
);
- m->b = next_color(&m->b_up, m->b,
5
);
+ m->r = next_color(&m->r_up, m->r,
4
);
+ m->g = next_color(&m->g_up, m->g,
3
);
+ m->b = next_color(&m->b_up, m->b,
2
);
GRDEV_DISPLAY_FOREACH_TARGET(d, t, 0) {
modeset_draw(m, t);