Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abbe955

Browse files
committed
Only call vips_tile_move() when reusing a tile
This is not necessary for creating a new tile, since the x/y position does not change.
1 parent 10c8409 commit abbe955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvips/conversion/tilecache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ vips_tile_new(VipsBlockCache *cache, int x, int y)
220220

221221
vips__region_no_ownership(tile->region);
222222

223-
if (vips_tile_move(tile, x, y)) {
223+
if (vips_region_buffer(tile->region, &tile->pos)) {
224224
g_hash_table_remove(cache->tiles, &tile->pos);
225225
return NULL;
226226
}

0 commit comments

Comments
 (0)