forked from LeenkxTeam/LNXSDK
		
	Update leenkx/Sources/iron/App.hx
This commit is contained in:
		@ -54,6 +54,23 @@ class App {
 | 
			
		||||
		if (Scene.active == null || !Scene.active.ready) return;
 | 
			
		||||
		
 | 
			
		||||
		iron.system.Time.update();
 | 
			
		||||
		
 | 
			
		||||
		
 | 
			
		||||
		if (lastw == -1) {
 | 
			
		||||
			lastw = App.w();
 | 
			
		||||
			lasth = App.h();
 | 
			
		||||
		}
 | 
			
		||||
		if (lastw != App.w() || lasth != App.h()) {
 | 
			
		||||
			if (onResize != null) onResize();
 | 
			
		||||
			else {
 | 
			
		||||
				if (Scene.active != null && Scene.active.camera != null) {
 | 
			
		||||
					Scene.active.camera.buildProjection();
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		lastw = App.w();
 | 
			
		||||
		lasth = App.h();
 | 
			
		||||
		
 | 
			
		||||
		if (pauseUpdates) return;
 | 
			
		||||
 | 
			
		||||
		#if lnx_debug
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user