overlay: Set the text color in case we do not have RC6

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-08-27 13:32:26 +01:00
parent 396fa1b3f5
commit 87b66f4cf0

View File

@ -611,6 +611,7 @@ static void show_gpu_freq(struct overlay_context *ctx, struct overlay_gpu_freq *
if (has_power) {
sprintf(buf, "Power: %llumW", (long long unsigned)gf->power.power_mW);
cairo_set_source_rgba(ctx->cr, 1, 1, 1, 1);
cairo_move_to(ctx->cr, PAD, y);
cairo_show_text(ctx->cr, buf);
y += 14;
@ -618,6 +619,7 @@ static void show_gpu_freq(struct overlay_context *ctx, struct overlay_gpu_freq *
if (has_irqs) {
sprintf(buf, "Interrupts: %llu", (long long unsigned)gf->irqs.delta);
cairo_set_source_rgba(ctx->cr, 1, 1, 1, 1);
cairo_move_to(ctx->cr, PAD, y);
cairo_show_text(ctx->cr, buf);
y += 14;