diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java index 2e98514a6b..d8e0347d83 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java @@ -287,9 +287,9 @@ public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height final float w = right - left; final float h = top - bottom; final float l = left + tileX * w / imageWidth; - final float r = l + w * tileWidth / imageWidth; + final float r = l + tileWidth * w / imageWidth; final float b = bottom + tileY * h / imageHeight; - final float t = b + h * tileHeight / imageHeight; + final float t = b + tileHeight * h / imageHeight; final float _w = r - l; final float _h = t - b; diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java index 04f552e343..80e145c672 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java @@ -203,9 +203,9 @@ public void reshape(GL2 gl, int x, int y, int width, int height) { final float w = right - left; final float h = top - bottom; final float l = left + tileX * w / imageWidth; - final float r = l + w * tileWidth / imageWidth; + final float r = l + tileWidth * w / imageWidth; final float b = bottom + tileY * h / imageHeight; - final float t = b + h * tileHeight / imageHeight; + final float t = b + tileHeight * h / imageHeight; final float _w = r - l; final float _h = t - b;