Commit 72ebc788 authored by Benjamin Otte's avatar Benjamin Otte

entry: Move cairo_save() call for clarity

We want save, clip, draw1, restore, save, clip, draw2, restore
and not save, save, clip, draw1, restore, clip, draw2, restore

Functionally the same thing, but not as obvious
parent 6fee7834
......@@ -5774,8 +5774,6 @@ gtk_entry_draw_text (GtkEntry *entry,
cairo_save (cr);
cairo_save (cr);
cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD);
cairo_rectangle (cr, 0, 0, width, height);
......@@ -5791,6 +5789,8 @@ gtk_entry_draw_text (GtkEntry *entry,
draw_text_with_color (entry, cr, &text_color);
cairo_restore (cr);
cairo_save (cr);
cairo_rectangle (cr, progress_x, progress_y,
progress_width, progress_height);
cairo_clip (cr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment