浏览代码

minor fixes

Nicolas Cannasse 11 年之前
父节点
当前提交
b12997b7ff
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 1
      h3d/pass/Object.hx
  2. 1 1
      hxd/res/FontBuilder.hx

+ 0 - 1
h3d/pass/Object.hx

@@ -9,6 +9,5 @@ class Object {
 	public var next : Object;
 	public function new() {
 		shaders = [];
-		trace("alloc");
 	}
 }

+ 1 - 1
hxd/res/FontBuilder.hx

@@ -133,7 +133,7 @@ class FontBuilder {
 	
 	#elseif js
 	
-	function build() {
+	function build() : h2d.Font {
 		var bmp = js.Browser.document.createCanvasElement();
 		var ctx = bmp.getContext2d();
 		ctx.font = '${this.font.size}px ${this.font.name}';