Commit 6b74d8d8 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

inlined local variables that are only used once.

2008-11-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrenderervectors.c
	(gimp_view_renderer_vectors_draw): inlined local variables that
	are only used once.


svn path=/trunk/; revision=27703
parent ebc39ee0
2008-11-21 Sven Neumann <sven@gimp.org>
* app/widgets/gimpviewrenderervectors.c
(gimp_view_renderer_vectors_draw): inlined local variables that
are only used once.
2008-11-21 Sven Neumann <sven@gimp.org>
* app/tools/gimpdrawtool.c (gimp_draw_tool_real_draw): moved
......
......@@ -73,14 +73,12 @@ gimp_view_renderer_vectors_draw (GimpViewRenderer *renderer,
GtkStyle *style = gtk_widget_get_style (widget);
GimpVectors *vectors = GIMP_VECTORS (renderer->viewable);
GimpBezierDesc *bezdesc;
gint x, y;
gdk_cairo_set_source_color (cr, &style->white);
x = area->x + (area->width - renderer->width) / 2;
y = area->y + (area->height - renderer->height) / 2;
cairo_translate (cr, x, y);
cairo_translate (cr,
area->x + (area->width - renderer->width) / 2,
area->y + (area->height - renderer->height) / 2);
cairo_rectangle (cr, 0, 0, renderer->width, renderer->height);
cairo_clip_preserve (cr);
cairo_fill (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