lib/linner/sprite.rb in linner-0.6.1 vs lib/linner/sprite.rb in linner-0.6.2

- old
+ new

@@ -71,10 +71,10 @@ image.left = block[:x] end def split_block(block, image) block[:used] = true - block[:down] = {:x => block[:x], :y => block[:y] + image.width, :w => block[:w], :h => block[:h] - image.height} + block[:down] = {:x => block[:x], :y => block[:y] + image.height, :w => block[:w], :h => block[:h] - image.height} block[:right] = {:x => block[:x] + image.width, :y => block[:y], :w => block[:w] - image.width, :h => image.height} end def expand_root(root, image) can_expand_down = (image.width <= root[:w])