|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 39cf40e846754fe37f5c8a948f37227ce1ef8472 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: David Herrmann <dh.herrmann@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Sat, 20 Sep 2014 09:45:26 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] terminal: reduce speed of morphing colors in modeset test
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
The high frequency of the color-morphing is kinda irritating. Reduce it
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
to a much lower frequency so you can actually look at it longer than few
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
seconds.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/libsystemd-terminal/modeset.c | 6 +++---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/libsystemd-terminal/modeset.c b/src/libsystemd-terminal/modeset.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 02ed1a8987..c1119c9e0f 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/libsystemd-terminal/modeset.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/libsystemd-terminal/modeset.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -252,9 +252,9 @@ static void modeset_draw(Modeset *m, const grdev_display_target *t) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
static void modeset_render(Modeset *m, grdev_display *d) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
const grdev_display_target *t;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- m->r = next_color(&m->r_up, m->r, 20);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- m->g = next_color(&m->g_up, m->g, 10);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- m->b = next_color(&m->b_up, m->b, 5);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ m->r = next_color(&m->r_up, m->r, 4);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ m->g = next_color(&m->g_up, m->g, 3);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ m->b = next_color(&m->b_up, m->b, 2);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
GRDEV_DISPLAY_FOREACH_TARGET(d, t, 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
modeset_draw(m, t);
|