diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | libnautilus-extensions/nautilus-icon-canvas-item.c | 4 | ||||
-rw-r--r-- | libnautilus-private/nautilus-icon-canvas-item.c | 4 |
3 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2000-08-04 Andy Hertzfeld <andy@eazel.com> + + * libnautilus-extensions/nautilus-icon-canvas-item.c: + (nautilus_icon_canvas_item_render): + fixed bug 1849, left edge of icons sometime get chopped off in + anti-aliased mode. Fixed by truncating the offset in the + affine transfer to integers. + 2000-08-04 Darin Adler <darin@eazel.com> * src/file-manager/fm-directory-view.c: diff --git a/libnautilus-extensions/nautilus-icon-canvas-item.c b/libnautilus-extensions/nautilus-icon-canvas-item.c index dcd8ae3df..5731cb6f4 100644 --- a/libnautilus-extensions/nautilus-icon-canvas-item.c +++ b/libnautilus-extensions/nautilus-icon-canvas-item.c @@ -1274,6 +1274,10 @@ nautilus_icon_canvas_item_render (GnomeCanvasItem *item, GnomeCanvasBuf *buf) i2c[0] = 1.0; i2c[3] = 1.0; + /* force it to integer pixel boundaries to avoid losing some of the left edge */ + i2c[4] = floor (i2c[4]); + i2c[5] = floor (i2c[5]); + if (buf->is_bg) { gnome_canvas_buf_ensure_buf (buf); buf->is_bg = FALSE; diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c index dcd8ae3df..5731cb6f4 100644 --- a/libnautilus-private/nautilus-icon-canvas-item.c +++ b/libnautilus-private/nautilus-icon-canvas-item.c @@ -1274,6 +1274,10 @@ nautilus_icon_canvas_item_render (GnomeCanvasItem *item, GnomeCanvasBuf *buf) i2c[0] = 1.0; i2c[3] = 1.0; + /* force it to integer pixel boundaries to avoid losing some of the left edge */ + i2c[4] = floor (i2c[4]); + i2c[5] = floor (i2c[5]); + if (buf->is_bg) { gnome_canvas_buf_ensure_buf (buf); buf->is_bg = FALSE; |