diff options
author | Mike Engber <engber@src.gnome.org> | 2000-11-17 20:36:05 +0000 |
---|---|---|
committer | Mike Engber <engber@src.gnome.org> | 2000-11-17 20:36:05 +0000 |
commit | 288b3bda71bee86598618816a6e3f823ec82913e (patch) | |
tree | d914d5d45ee0c9a4066c606a4e16471ea318e617 | |
parent | 999aaf072a26c098ec5e36b1447221947d103418 (diff) | |
download | nautilus-288b3bda71bee86598618816a6e3f823ec82913e.tar.gz |
Fixed off by one error in gradient calculation (bug 4759)
* libnautilus-extensions/nautilus-background.c:
(nautilus_background_ensure_gradient_buffered):
Fixed off by one error in gradient calculation (bug 4759)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | libnautilus-extensions/nautilus-background.c | 2 | ||||
-rw-r--r-- | libnautilus-private/nautilus-background.c | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2000-11-17 Michael Engber <engber@eazel.com> + + * libnautilus-extensions/nautilus-background.c: + (nautilus_background_ensure_gradient_buffered): + Fixed off by one error in gradient calculation (bug 4759) + 2000-11-17 John Sullivan <sullivan@eazel.com> Fixed bug with "Disks" submenu in desktop context menu where diff --git a/libnautilus-extensions/nautilus-background.c b/libnautilus-extensions/nautilus-background.c index 433c90596..6d346f76a 100644 --- a/libnautilus-extensions/nautilus-background.c +++ b/libnautilus-extensions/nautilus-background.c @@ -340,7 +340,7 @@ nautilus_background_ensure_gradient_buffered (NautilusBackground *background, in dg = new_color.green - cur_color.green; db = new_color.blue - cur_color.blue; - fill_pos = 0; + fill_pos = 1; fill_width = (percent * num_pixels) / 100; fill_limit = MIN (buff_ptr + fill_width * 3, buff_limit); diff --git a/libnautilus-private/nautilus-background.c b/libnautilus-private/nautilus-background.c index 433c90596..6d346f76a 100644 --- a/libnautilus-private/nautilus-background.c +++ b/libnautilus-private/nautilus-background.c @@ -340,7 +340,7 @@ nautilus_background_ensure_gradient_buffered (NautilusBackground *background, in dg = new_color.green - cur_color.green; db = new_color.blue - cur_color.blue; - fill_pos = 0; + fill_pos = 1; fill_width = (percent * num_pixels) / 100; fill_limit = MIN (buff_ptr + fill_width * 3, buff_limit); |