diff src/scripts/boot.lua @ 1321:30d0e4cb3d2b love.graphics.origin

Added love.graphics.origin(): resets the coordinate system (replaces the current transformation matrix with the identity)
author Alex Szpakowski <slime73@gmail.com>
date Sun, 24 Feb 2013 14:07:03 -0400
parents b7f097053d74
children f22a7acf5853
line wrap: on
line diff
--- a/src/scripts/boot.lua	Sun Feb 24 15:11:14 2013 +0100
+++ b/src/scripts/boot.lua	Sun Feb 24 14:07:03 2013 -0400
@@ -369,6 +369,7 @@
 				love.event.pump()
 				love.graphics.setBackgroundColor(89, 157, 220)
 				love.graphics.clear()
+				love.graphics.origin()
 				love.graphics.print(msg, 70, 70)
 				love.graphics.present()
 				love.graphics.setBackgroundColor(0, 0, 0)
@@ -416,6 +417,7 @@
 		if love.update then love.update(dt) end -- will pass 0 if love.timer is disabled
 		if love.graphics then
 			love.graphics.clear()
+			love.graphics.origin()
 			if love.draw then love.draw() end
 		end
 
@@ -709,6 +711,7 @@
 	local trace = debug.traceback()
 
 	love.graphics.clear()
+	love.graphics.origin()
 
 	local err = {}
 
@@ -772,6 +775,7 @@
 	love.graphics.setColor(255, 255, 255, 255)
 
 	love.graphics.clear()
+	love.graphics.origin()
 
 	local err = {}