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"
|
||||
output_png.replace! input_png, image.left, image.top
|
||||
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
|
||||
begin
|
||||
output_png.replace! input_png, x, image.top
|
||||
|
Loading…
Reference in New Issue
Block a user