diff options
-rw-r--r-- | rect.lua | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -50,12 +50,8 @@ function Rect.has(self, point) and self.y0 <= point.y and point.y <= self.y1 end -function Rect.vals(self) - return self.x0, self.y0, self.w, self.h -end - function Rect.draw(self, mode) - love.graphics.rectangle(mode or 'line', self:vals()) + love.graphics.rectangle(mode or 'line', self.x0, self.y0, self.w, self.h) end function Rect.__tostring(self) |