mirror of https://github.com/GNOME/gimp.git
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
This commit is contained in:
parent
ebc39ee055
commit
6b74d8d8d6
|
@ -1,3 +1,9 @@
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue