aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/com')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java4
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java4
2 files changed, 4 insertions, 4 deletions
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 2e98514a6..d8e0347d8 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 class GearsES2 implements GLEventListener, TileRendererBase.TileRendererN
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 04f552e34..80e145c67 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 class Gears implements GLEventListener, TileRendererBase.TileRendererNoti
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;