overlay: Set the text color in case we do not have RC6
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2013 12:32:26 +0000 (13:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2013 13:26:22 +0000 (14:26 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
overlay/overlay.c

index de20177..d1eb158 100644 (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;