diff --git a/src/lsystem/screen/AbstractListener.java b/src/lsystem/screen/AbstractListener.java index 64a66cd..66f904d 100644 --- a/src/lsystem/screen/AbstractListener.java +++ b/src/lsystem/screen/AbstractListener.java @@ -50,7 +50,7 @@ public abstract class AbstractListener implements GLEventListener { gl.glMatrixMode(GL2.GL_PROJECTION); gl.glLoadIdentity(); - glu.gluPerspective(60.0f, (float) width / height, 0.1f, 1000.0f); + glu.gluPerspective(60.0f, ((float) width) / height, 0.1f, 1000.0f); } public abstract void drawLSystem(GL2 gl, Element element); diff --git a/src/lsystem/utils/Pair.java b/src/lsystem/utils/Pair.java index 4ed5df6..313b7a8 100644 --- a/src/lsystem/utils/Pair.java +++ b/src/lsystem/utils/Pair.java @@ -38,7 +38,7 @@ public class Pair { return false; } final Pair other = (Pair) obj; - return this.left.equals(other.getLeft()) && this.left.equals(other.getRight()); + return this.left.equals(other.getLeft()) && this.right.equals(other.getRight()); } @Override