summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-background.c
diff options
context:
space:
mode:
authorMike Engber <engber@src.gnome.org>2000-12-05 00:42:13 +0000
committerMike Engber <engber@src.gnome.org>2000-12-05 00:42:13 +0000
commit3b43516099df1a33f2c8c8cb9755afd9436f2584 (patch)
tree4a1826d3d6ee0c2662ba0f77af093d6510d2b7a1 /libnautilus-extensions/nautilus-background.c
parent7bfcc5719cb323b56999f14933575411e33fbdb4 (diff)
downloadnautilus-3b43516099df1a33f2c8c8cb9755afd9436f2584.tar.gz
Changed the semantics of multi-point gradients so that percentages are
* libnautilus-extensions/nautilus-background.c: (nautilus_background_ensure_gradient_buffered): Changed the semantics of multi-point gradients so that percentages are postions (rather than widths) - bug 4759
Diffstat (limited to 'libnautilus-extensions/nautilus-background.c')
-rw-r--r--libnautilus-extensions/nautilus-background.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-extensions/nautilus-background.c b/libnautilus-extensions/nautilus-background.c
index 206d88580..39860b3f2 100644
--- a/libnautilus-extensions/nautilus-background.c
+++ b/libnautilus-extensions/nautilus-background.c
@@ -337,7 +337,7 @@ nautilus_background_ensure_gradient_buffered (NautilusBackground *background, in
db = new_color.blue - cur_color.blue;
fill_pos = 1;
- fill_limit = MIN (buff_ptr + 3 * ((num_pixels * percent) / 100), buff_limit);
+ fill_limit = MIN (background->details->gradient_buffer + 3 * ((num_pixels * percent) / 100), buff_limit);
fill_width = (fill_limit - buff_ptr) / 3;
while (buff_ptr < fill_limit) {