summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Engber <engber@src.gnome.org>2000-11-17 20:36:05 +0000
committerMike Engber <engber@src.gnome.org>2000-11-17 20:36:05 +0000
commit288b3bda71bee86598618816a6e3f823ec82913e (patch)
treed914d5d45ee0c9a4066c606a4e16471ea318e617
parent999aaf072a26c098ec5e36b1447221947d103418 (diff)
downloadnautilus-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--ChangeLog6
-rw-r--r--libnautilus-extensions/nautilus-background.c2
-rw-r--r--libnautilus-private/nautilus-background.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d16dc0ab..5753d2ad9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);