[gtk+/wip/pango-shadow-cache] 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] cssshadowvalue: Remove the move_to in paint_layout
- Date: Wed, 3 Sep 2014 17:29:31 +0000 (UTC)
commit 694d483e5a186a1e418160c6d58ff7fc3d78ce40
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 dccc680..89035cf 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -423,9 +423,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);
if (needs_blur (shadow))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]