소스 검색

compare problem for bounds

[email protected] 11 년 전
부모
커밋
6f2f5f5935
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h2d/Graphics.hx

+ 1 - 1
h2d/Graphics.hx

@@ -302,7 +302,7 @@ class Graphics extends Drawable {
 		if( x < xMin ) xMin = x;
 		if( x < xMin ) xMin = x;
 		if( y < yMin ) yMin = y;
 		if( y < yMin ) yMin = y;
 		if( x > xMax ) xMax = x;
 		if( x > xMax ) xMax = x;
-		if( y < yMax ) yMax = y;
+		if( y > yMax ) yMax = y;
 		if( doFill ) {
 		if( doFill ) {
 			var p = new GraphicsPoint(x, y);
 			var p = new GraphicsPoint(x, y);
 			p.id = pindex++;
 			p.id = pindex++;