changed sprite math back to ceil
This commit is contained in:
parent
2c62cdf2f9
commit
a08003cdd9
@ -17,7 +17,7 @@ module Compass
|
|||||||
if image.repeat == "no-repeat"
|
if image.repeat == "no-repeat"
|
||||||
output_png.replace! input_png, image.left, image.top
|
output_png.replace! input_png, image.left, image.top
|
||||||
else
|
else
|
||||||
x = image.left - (image.left / image.width).floor * image.width
|
x = image.left - (image.left / image.width).ceil * image.width
|
||||||
while x < width do
|
while x < width do
|
||||||
begin
|
begin
|
||||||
output_png.replace! input_png, x, image.top
|
output_png.replace! input_png, x, image.top
|
||||||
|
Loading…
Reference in New Issue
Block a user