Browse Source

minor optims in debug mode

ncannasse 9 years ago
parent
commit
d50c383474
2 changed files with 3 additions and 1 deletions
  1. 1 0
      hxd/Pixels.hx
  2. 2 1
      hxd/clipper/Clipper.hx

+ 1 - 0
hxd/Pixels.hx

@@ -173,6 +173,7 @@ class Pixels {
 		format = target;
 	}
 
+	@:noDebug
 	public function getPixel(x, y) : Int {
 		if( flags.has(FlipY) ) y = height - 1 - y;
 		var p = ((x + y * width) * bpp) + offset;

+ 2 - 1
hxd/clipper/Clipper.hx

@@ -276,6 +276,7 @@ private class Join {
 
 //------------------------------------------------------------------------------
 
+@:noDebug
 @:allow(hxd.clipper)
 private class ClipperBase
 {
@@ -832,7 +833,7 @@ enum ResultKind {
 	HolesOnly;
 }
 
-
+@:noDebug
 @:allow(hxd.clipper)
 class Clipper extends ClipperBase {