Explorar o código

compare problem for bounds

[email protected] %!s(int64=11) %!d(string=hai) anos
pai
achega
6f2f5f5935
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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( y < yMin ) yMin = y;
 		if( x > xMax ) xMax = x;
-		if( y < yMax ) yMax = y;
+		if( y > yMax ) yMax = y;
 		if( doFill ) {
 			var p = new GraphicsPoint(x, y);
 			p.id = pindex++;