StanAngeloff / compass-magick

Dynamic image generation for Compass using ChunkyPNG/PhantomJS.
http://StanAngeloff.github.com/compass-magick/
Other
157 stars 4 forks source link

bug in Canvas tile #6

Closed boomyjee closed 13 years ago

boomyjee commented 13 years ago

should be canvas.set_pixel(x, y, @pixels[(x % @width) + (y % @height) * @width]) instead of canvas.set_pixel(x, y, @pixels[(x % @width) + (y % @height) * @height])

Bug results in wrong tiling with non-square images (it's obvious). BTW, thx for great lib.

StanAngeloff commented 13 years ago

Doh! Thanks for reporting this. I'll merge it tomorrow.