Explorar o código

Resize problems fix (#141)

Resolve various resize issues on s3d windows
Jed974 %!s(int64=4) %!d(string=hai) anos
pai
achega
fc4aafa22d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      hide/comp/Scene.hx

+ 2 - 0
hide/comp/Scene.hx

@@ -147,7 +147,9 @@ class Scene extends Component implements h3d.IDrawable {
 		};
 		engine.onResized = function() {
 			if( s2d == null ) return;
+			setCurrent();
 			visible = engine.width > 32 && engine.height > 32; // 32x32 when hidden !
+			s2d.scaleMode = Resize; // setter call
 			onResize();
 		};
 		engine.init();