Method: Gosu::BlockAllocator#free

Defined in:
lib/gosu_android/graphics/blockAllocator.rb

#free(left, top) ⇒ Object



106
107
108
109
110
111
112
113
114
115
116
# File 'lib/gosu_android/graphics/blockAllocator.rb', line 106

def free (left, top)
  @pimpl.blocks.delete_if do |block|
    if block.left == left and block.top == top
      @pimpl.max_w = @pimpl.max_w - 1
      @pimpl.max_h = @pimpl.max_h - 1
      true
    else
      false  
    end
  end
end