Reset cairo surface when drawing console

We must use SOURCE operator to reset the surface. Otherwise, we end up doing
nothing here because our alpha value is 0.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2011-11-26 16:48:59 +01:00
parent c455d8f9f0
commit c8855d47b2

View File

@ -206,8 +206,7 @@ void kmscon_console_draw(struct kmscon_console *con)
cairo_save(con->cr);
cairo_set_operator(con->cr, CAIRO_OPERATOR_OVER);
cairo_scale(con->cr, con->res_x, con->res_y);
cairo_set_operator(con->cr, CAIRO_OPERATOR_SOURCE);
cairo_set_source_rgba(con->cr, 0.0, 0.0, 0.0, 0.0);
cairo_paint(con->cr);