gimp r27703 - in trunk: . app/widgets
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27703 - in trunk: . app/widgets
- Date: Fri, 21 Nov 2008 21:15:29 +0000 (UTC)
Author: neo
Date: Fri Nov 21 21:15:29 2008
New Revision: 27703
URL: http://svn.gnome.org/viewvc/gimp?rev=27703&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/widgets/gimpviewrenderervectors.c
Modified: trunk/app/widgets/gimpviewrenderervectors.c
==============================================================================
--- trunk/app/widgets/gimpviewrenderervectors.c (original)
+++ trunk/app/widgets/gimpviewrenderervectors.c Fri Nov 21 21:15:29 2008
@@ -73,14 +73,12 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]