gimp r24841 - in trunk: . app/widgets
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24841 - in trunk: . app/widgets
- Date: Sat, 9 Feb 2008 17:24:04 +0000 (GMT)
Author: mitch
Date: Sat Feb 9 17:24:04 2008
New Revision: 24841
URL: http://svn.gnome.org/viewvc/gimp?rev=24841&view=rev
Log:
2008-02-09 Michael Natterer <mitch gimp org>
* app/widgets/gimpcurveview.c (gimp_curve_view_draw_point): cleanup.
Modified:
trunk/ChangeLog
trunk/app/widgets/gimpcurveview.c
Modified: trunk/app/widgets/gimpcurveview.c
==============================================================================
--- trunk/app/widgets/gimpcurveview.c (original)
+++ trunk/app/widgets/gimpcurveview.c Sat Feb 9 17:24:04 2008
@@ -315,19 +315,21 @@
{
gdouble x, y;
- x = view->curve->points[i][0];
+ x = view->curve->points[i][0];
+ y = 1.0 - view->curve->points[i][1];
+
if (x < 0.0)
return;
- y = 1.0 - view->curve->points[i][1];
+#define RADIUS 3
cairo_move_to (cr,
- border + (gdouble) width * x + 3,
+ border + (gdouble) width * x + RADIUS,
border + (gdouble) height * y);
cairo_arc (cr,
border + (gdouble) width * x,
border + (gdouble) height * y,
- 3,
+ RADIUS,
0, 2 * G_PI);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]