changed sprite math back to ceil

This commit is contained in:
Scott Davis 2011-04-01 14:57:29 -04:00
parent 2c62cdf2f9
commit a08003cdd9

View File

@ -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