瀏覽代碼

minor compilation fixes

ncannasse 8 年之前
父節點
當前提交
25b26a2047
共有 6 個文件被更改,包括 7 次插入7 次删除
  1. 2 2
      h2d/comp/Input.hx
  2. 1 1
      hxd/Stage.flash.hx
  3. 1 1
      hxd/Stage.hl.hx
  4. 1 1
      hxd/Stage.hx
  5. 1 1
      hxd/Stage.js.hx
  6. 1 1
      hxd/net/SocketHost.hx

+ 2 - 2
h2d/comp/Input.hx

@@ -62,13 +62,13 @@ class Input extends Interactive {
 				if( ctrlDown ) {
 					switch( e.keyCode ) {
 					case "V".code:
-						var clip = hxd.System.getClipboard();
+						/*var clip = hxd.System.getClipboard();
 						if( clip != "" ) {
 							clip = clip.split("\t").join(" ").split("\r\n").join(" ").split("\r").join(" ").split("\n").join(" ");
 							value = value.substr(0, cursorPos) + clip + value.substr(cursorPos);
 							cursorPos += clip.length;
 							onChange(value);
-						}
+						}*/
 					default:
 					}
 					return;

+ 1 - 1
hxd/Stage.flash.hx

@@ -119,7 +119,7 @@ class Stage {
 		}
 	}
 
-	static var inst = null;
+	static var inst : Stage = null;
 	public static function getInstance() : Stage {
 		if( inst == null ) inst = new Stage();
 		return inst;

+ 1 - 1
hxd/Stage.hl.hx

@@ -259,7 +259,7 @@ class Stage {
 			addKey(sdl, keys.get(sdl));
 	}
 
-	static var inst = null;
+	static var inst : Stage = null;
 	public static function getInstance() : Stage {
 		return inst;
 	}

+ 1 - 1
hxd/Stage.hx

@@ -61,7 +61,7 @@ class Stage {
 	public function setFullScreen( v : Bool ) : Void {
 	}
 
-	static var inst = null;
+	static var inst : Stage = null;
 	public static function getInstance() : Stage {
 		if( inst == null ) inst = new Stage();
 		return inst;

+ 1 - 1
hxd/Stage.js.hx

@@ -103,7 +103,7 @@ class Stage {
 	public function setFullScreen( v : Bool ) : Void {
 	}
 
-	static var inst = null;
+	static var inst : Stage = null;
 	public static function getInstance() : Stage {
 		if( inst == null ) inst = new Stage();
 		return inst;

+ 1 - 1
hxd/net/SocketHost.hx

@@ -141,7 +141,7 @@ class SocketHost extends NetworkHost {
 		win.stage.addChild(l);
 		l.loadBytes(flash.Lib.current.loaderInfo.bytes, ctx);
 		win.activate();
-		#else
+		#elseif hl
 		var args = params == null ? [] : params.copy();
 		var hlFile = @:privateAccess Sys.makePath(Sys.sys_hl_file());
 		args.unshift(hlFile);