[gimp] plug-ins: make preview grid lines less blurry in map-object
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: make preview grid lines less blurry in map-object
- Date: Wed, 22 Feb 2012 20:55:37 +0000 (UTC)
commit 0f8dd4ab8867aff49e2ddc50387f7a334126c84c
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Feb 22 21:00:52 2012 +0100
plug-ins: make preview grid lines less blurry in map-object
plug-ins/map-object/map-object-preview.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/plug-ins/map-object/map-object-preview.c b/plug-ins/map-object/map-object-preview.c
index d9a20b1..d3a0b33 100644
--- a/plug-ins/map-object/map-object-preview.c
+++ b/plug-ins/map-object/map-object-preview.c
@@ -430,16 +430,16 @@ draw_wireframe_plane (cairo_t *cr,
gimp_vector_3d_to_2d (startx, starty, pw, ph,
&x2, &y2, &mapvals.viewpoint, &b);
- cairo_move_to (cr, RINT (x1), RINT (y1));
- cairo_line_to (cr, RINT (x2), RINT (y2));
+ cairo_move_to (cr, RINT (x1) + 0.5, RINT (y1) + 0.5);
+ cairo_line_to (cr, RINT (x2) + 0.5, RINT (y2) + 0.5);
gimp_vector_3d_to_2d (startx, starty, pw, ph,
&x1, &y1, &mapvals.viewpoint, &c);
gimp_vector_3d_to_2d (startx, starty, pw, ph,
&x2, &y2, &mapvals.viewpoint, &d);
- cairo_move_to (cr, RINT (x1), RINT (y1));
- cairo_line_to (cr, RINT (x2), RINT (y2));
+ cairo_move_to (cr, RINT (x1) + 0.5, RINT (y1) + 0.5);
+ cairo_line_to (cr, RINT (x2) + 0.5, RINT (y2) + 0.5);
gimp_vector3_sub (&a, &a, &dir1);
gimp_vector3_sub (&b, &b, &dir1);
@@ -540,8 +540,8 @@ draw_wireframe_sphere (cairo_t *cr,
gimp_vector_3d_to_2d (startx, starty, pw, ph,
&x2, &y2, &mapvals.viewpoint, &p[cnt + 1]);
- cairo_move_to (cr, (gint) (x1 + 0.5), (gint) (y1 + 0.5));
- cairo_line_to (cr, (gint) (x2 + 0.5), (gint) (y2 + 0.5));
+ cairo_move_to (cr, (gint) (x1 + 0.5) + 0.5, (gint) (y1 + 0.5) + 0.5);
+ cairo_line_to (cr, (gint) (x2 + 0.5) + 0.5, (gint) (y2 + 0.5) + 0.5);
}
}
@@ -555,8 +555,8 @@ draw_wireframe_sphere (cairo_t *cr,
gimp_vector_3d_to_2d (startx, starty, pw, ph,
&x2, &y2, &mapvals.viewpoint, &p[cnt2 + 1]);
- cairo_move_to (cr, RINT (x1), RINT (y1));
- cairo_line_to (cr, RINT (x2), RINT (y2));
+ cairo_move_to (cr, RINT (x1) + 0.5, RINT (y1) + 0.5);
+ cairo_line_to (cr, RINT (x2) + 0.5, RINT (y2) + 0.5);
cnt2 += 2;
}
@@ -588,8 +588,8 @@ draw_line (cairo_t *cr,
gimp_vector_3d_to_2d (startx, starty, pw, ph,
&x2, &y2, &mapvals.viewpoint, &b);
- cairo_move_to (cr, RINT (x1), RINT (y1));
- cairo_line_to (cr, RINT (x2), RINT (y2));
+ cairo_move_to (cr, RINT (x1) + 0.5, RINT (y1) + 0.5);
+ cairo_line_to (cr, RINT (x2) + 0.5, RINT (y2) + 0.5);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]