Fix api setup because it was erroring
This commit is contained in:
parent
f881be51e4
commit
21eb93fe4c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue