浏览代码

added resize()

ncannasse 8 年之前
父节点
当前提交
3f047ff0d4
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      hxd/Stage.hx

+ 7 - 0
hxd/Stage.hx

@@ -163,6 +163,13 @@ class Stage {
 			r();
 	}
 
+	public function resize( width : Int, height : Int ) {
+		#if hxsdl
+		var win = @:privateAccess System.win;
+		win.resize(width, height);
+		#end
+	}
+
 	public function setFullScreen( v : Bool ) {
 		#if flash
 		var isAir = flash.system.Capabilities.playerType == "Desktop";