summaryrefslogtreecommitdiff
path: root/gtk/gtkhsv.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2001-05-11 22:24:59 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-05-11 22:24:59 +0000
commit0cfd48a80edf92e9e8569674c26c9fa7f230b1f2 (patch)
treecc6d86d47242a0c5bfaddc565ae72929dc5a051d /gtk/gtkhsv.c
parentcf18c0258da5f1be604fcb36142738afbe61436f (diff)
downloadgdk-pixbuf-0cfd48a80edf92e9e8569674c26c9fa7f230b1f2.tar.gz
Expose the ring in the triangle at the correct place when exposing just a
2001-05-11 Alexander Larsson <alexl@redhat.com> * gtk/gtkhsv.c (paint_triangle): Expose the ring in the triangle at the correct place when exposing just a part of the triangle.
Diffstat (limited to 'gtk/gtkhsv.c')
-rw-r--r--gtk/gtkhsv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index 2f8b0a086..6eecde7c3 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -1265,8 +1265,8 @@ paint_triangle (GtkHSV *hsv,
/* Draw value marker */
- xx = floor (sx + (vx - sx) * priv->v + (hx - vx) * priv->s * priv->v + 0.5);
- yy = floor (sy + (vy - sy) * priv->v + (hy - vy) * priv->s * priv->v + 0.5);
+ xx = floor (sx + (vx - sx) * priv->v + (hx - vx) * priv->s * priv->v + 0.5) - x;
+ yy = floor (sy + (vy - sy) * priv->v + (hy - vy) * priv->s * priv->v + 0.5) - y;
r = priv->h;
g = priv->s;