mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Removed Canvas:clear. love.graphics.clear now accepts r,g,b,a values (and defaults to 0,0,0,0 with no arguments given.) love.graphics.clear clears the content of the currently active Canvas(es.)
--HG-- branch : minor
This commit is contained in:
@@ -526,7 +526,7 @@ function love.run()
|
||||
if love.update then love.update(dt) end -- will pass 0 if love.timer is disabled
|
||||
|
||||
if love.graphics and love.graphics.isActive() then
|
||||
love.graphics.clear()
|
||||
love.graphics.clear(love.graphics.getBackgroundColor())
|
||||
love.graphics.origin()
|
||||
if love.draw then love.draw() end
|
||||
love.graphics.present()
|
||||
|
||||
Reference in New Issue
Block a user