Skip to content
Myr

render: draw prompt text using the configured text-color

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 2e652d8 · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:render.c+6 added-1 removed
49 unmodified lines
50 glyphs[i].x += border_size + x_margin;51 glyphs[i].y += border_size + y_margin + fextents.height - fextents.descent;52 }5354 double r = (double)((render->options.text_color >> 24) & 0xff) / 255.0;55 double g = (double)((render->options.text_color >> 16) & 0xff) / 255.0;56 double b = (double)((render->options.text_color >> 8) & 0xff) / 255.0;57 double a = (double)((render->options.text_color >> 0) & 0xff) / 255.0;5854 cairo_set_source_rgba(buf->cairo, 1.0, 1.0, 1.0, 1.0);59 cairo_set_source_rgba(buf->cairo, r, g, b, a);60 cairo_set_operator(buf->cairo, CAIRO_OPERATOR_OVER);61 cairo_show_text_glyphs(62 buf->cairo, text, -1, glyphs, num_glyphs,63 clusters, num_clusters, cluster_flags);
236 unmodified lines