Fix api setup because it was erroring

This commit is contained in:
Robert Miles 2018-08-01 20:16:26 -04:00
parent f881be51e4
commit 21eb93fe4c
1 changed files with 5 additions and 2 deletions

View File

@ -10,14 +10,17 @@ local function callGraphic(...)
love.graphics.setCanvas()
end
local function api.rectfill(x,y,w,h,c)
local function rectfill(x,y,w,h,c)
drawState.color = c or drawState.color
return callGraphic("rectangle","fill",x,y,w,h)
end
local function api.rect(x,y,w,h,c)
local function rect(x,y,w,h,c)
drawState.color = c or drawState.color
return callGraphic("rectangle","line",x,y,w,h)
end
api.rectfill = rectfill
api.rect = rect
return api