Sha256: 5f7a420857edbc560e154005806d3cb93bede9d3180e92abd65e7e662980f7ec
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
diff --git a/lib/chunky_png/canvas/resampling.rb b/lib/chunky_png/canvas/resampling.rb index e3d97ca..58c234a 100644 --- a/lib/chunky_png/canvas/resampling.rb +++ b/lib/chunky_png/canvas/resampling.rb @@ -80,7 +80,7 @@ module ChunkyPNG steps_y = steps(height, new_height) - pixels = Array(size=new_width*new_height) + pixels = Array.new(size=new_width*new_height) i = 0 for y in steps_y for x in steps_x @@ -104,7 +104,7 @@ module ChunkyPNG index_x, interp_x = steps_residues(width, new_width) index_y, interp_y = steps_residues(height, new_height) - pixels = Array(size=new_width*new_height) + pixels = Array.new(size=new_width*new_height) i = 0 for y in 1..new_height # Clamp the indicies to the edges of the image
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bench9000-0.1 | benchmarks/chunky_png/chunky_png.patch |