forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
6fee78341a
commit
72ebc788a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user