]> Pileus Git - ~andy/gtk/commitdiff
Expose the ring in the triangle at the correct place when exposing just a
authorAlexander Larsson <alexl@redhat.com>
Fri, 11 May 2001 22:24:59 +0000 (22:24 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Fri, 11 May 2001 22:24:59 +0000 (22:24 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkhsv.c

index 259100eac9c15f5228965df85d975c7ae0db4863..416f08709c8dfd548e5ce50731e0932530731ef6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
+
        * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
        Return FALSE, or window focusing will not work.
 
index 259100eac9c15f5228965df85d975c7ae0db4863..416f08709c8dfd548e5ce50731e0932530731ef6 100644 (file)
@@ -1,5 +1,9 @@
 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.
+
        * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
        Return FALSE, or window focusing will not work.
 
index 259100eac9c15f5228965df85d975c7ae0db4863..416f08709c8dfd548e5ce50731e0932530731ef6 100644 (file)
@@ -1,5 +1,9 @@
 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.
+
        * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
        Return FALSE, or window focusing will not work.
 
index 259100eac9c15f5228965df85d975c7ae0db4863..416f08709c8dfd548e5ce50731e0932530731ef6 100644 (file)
@@ -1,5 +1,9 @@
 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.
+
        * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
        Return FALSE, or window focusing will not work.
 
index 259100eac9c15f5228965df85d975c7ae0db4863..416f08709c8dfd548e5ce50731e0932530731ef6 100644 (file)
@@ -1,5 +1,9 @@
 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.
+
        * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
        Return FALSE, or window focusing will not work.
 
index 259100eac9c15f5228965df85d975c7ae0db4863..416f08709c8dfd548e5ce50731e0932530731ef6 100644 (file)
@@ -1,5 +1,9 @@
 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.
+
        * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
        Return FALSE, or window focusing will not work.
 
index 259100eac9c15f5228965df85d975c7ae0db4863..416f08709c8dfd548e5ce50731e0932530731ef6 100644 (file)
@@ -1,5 +1,9 @@
 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.
+
        * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
        Return FALSE, or window focusing will not work.
 
index 2f8b0a0861457ace2f5f141601e9644365329c40..6eecde7c3fa6fde61fce093592ff4d96cff49ef0 100644 (file)
@@ -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;