summaryrefslogtreecommitdiff
path: root/overlay/overlay.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-18 19:16:29 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-18 19:21:02 +0100
commit1391ae08eb007205ad79d4201c3bf499239f8697 (patch)
tree1f4960adfe61d7b0fe7e6f39c5afa5c1d964c99d /overlay/overlay.c
parent90ef68859c3e5edf2a6cd6b274f0443b936c9e0d (diff)
overlay: Don't smooth gpu freq
This is supposed to be discrete jumps, so use straight lines to emphasis this nature. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/overlay.c')
-rw-r--r--overlay/overlay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/overlay/overlay.c b/overlay/overlay.c
index 65197a0f..aaf0f0cd 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -391,6 +391,7 @@ static void init_gpu_freq(struct overlay_context *ctx,
chart_set_size(&gf->current, ctx->width/2 - 18, ctx->height/2 - 18);
chart_set_stroke_rgba(&gf->current, 0.75, 0.25, 0.50, 1.);
chart_set_mode(&gf->current, CHART_STROKE);
+ chart_set_smooth(&gf->current, CHART_LINE);
chart_set_range(&gf->current, 0, gf->gpu_freq.max);
chart_init(&gf->request, "request", 120);
@@ -398,6 +399,7 @@ static void init_gpu_freq(struct overlay_context *ctx,
chart_set_size(&gf->request, ctx->width/2 - 18, ctx->height/2 - 18);
chart_set_fill_rgba(&gf->request, 0.25, 0.75, 0.50, 1.);
chart_set_mode(&gf->request, CHART_FILL);
+ chart_set_smooth(&gf->request, CHART_LINE);
chart_set_range(&gf->request, 0, gf->gpu_freq.max);
}