chiark / gitweb /
terminal: reduce speed of morphing colors in modeset test
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 07:45:26 +0000 (09:45 +0200)
committerDavid 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

index 02ed1a898750866461d78c62f29937db56cc1f72..c1119c9e0fde6f366df7b569a563bbff2fbe787b 100644 (file)
@@ -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);