[gtk+/wip/pango-shadow-cache: 3/8] cssshadowvalue: Remove the move_to in paint_layout
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/pango-shadow-cache: 3/8] cssshadowvalue: Remove the move_to in paint_layout
- Date: Wed, 3 Sep 2014 20:03:14 +0000 (UTC)
commit bdd100ed010bf0c82ad5a7a6d0e433b1ee154bc5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 3 09:15:09 2014 -0700
cssshadowvalue: Remove the move_to in paint_layout
_gtk_css_shadow_value_paint_layout is always called from
gtk_theming_engine_render_layout, which always moves the current point
on the context.
gtk/gtkcssshadowvalue.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index 7f72698..0c08659 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -384,9 +384,6 @@ _gtk_css_shadow_value_paint_layout (const GtkCssValue *shadow,
{
g_return_if_fail (shadow->class == >K_CSS_VALUE_SHADOW);
- if (!cairo_has_current_point (cr))
- cairo_move_to (cr, 0, 0);
-
cairo_save (cr);
cairo_rel_move_to (cr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]