aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo03.java2
-rw-r--r--src/jogl/classes/com/jogamp/math/geom/AABBox.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo03.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo03.java
index e2680f976..055348d99 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo03.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo03.java
@@ -322,7 +322,7 @@ public class UISceneDemo03 {
fontScale2 = g_w / fbox.getWidth();
System.err.println("FontScale2: " + fontScale2 + " = " + g_w + " / " + fbox.getWidth());
}
- final AABBox clippedBox = new AABBox(animBox).resizeWidth(sceneBoxFrameWidth, -sceneBoxFrameWidth);
+ final AABBox clippedBox = new AABBox(animBox).resizeWidth(-sceneBoxFrameWidth, -sceneBoxFrameWidth);
y_pos[0] = clippedBox.getMaxY();
// AnimGroup.Set 1:
// Circular short scrolling text (right to left) without rotation, no acceleration
diff --git a/src/jogl/classes/com/jogamp/math/geom/AABBox.java b/src/jogl/classes/com/jogamp/math/geom/AABBox.java
index 926f55aec..68a940ac9 100644
--- a/src/jogl/classes/com/jogamp/math/geom/AABBox.java
+++ b/src/jogl/classes/com/jogamp/math/geom/AABBox.java
@@ -212,14 +212,14 @@ public class AABBox {
/**
* Resize width of this AABBox with explicit left- and right delta values
- * @param deltaLeft positive value will shrink width, otherwise expand width
+ * @param deltaLeft positive value will expand width, otherwise shrink width
* @param deltaRight positive value will expand width, otherwise shrink width
* @return this AABBox for chaining
*/
public final AABBox resizeWidth(final float deltaLeft, final float deltaRight) {
boolean mod = false;
if( !FloatUtil.isZero(deltaLeft) ) {
- low.setX( low.x() + deltaLeft );
+ low.setX( low.x() - deltaLeft );
mod = true;
}
if( !FloatUtil.isZero(deltaRight) ) {
@@ -234,14 +234,14 @@ public class AABBox {
/**
* Resize height of this AABBox with explicit bottom- and top delta values
- * @param deltaBottom positive value will shrink height, otherwise expand height
+ * @param deltaBottom positive value will expand height, otherwise shrink height
* @param deltaTop positive value will expand height, otherwise shrink height
* @return this AABBox for chaining
*/
public final AABBox resizeHeight(final float deltaBottom, final float deltaTop) {
boolean mod = false;
if( !FloatUtil.isZero(deltaBottom) ) {
- low.setY( low.y() + deltaBottom );
+ low.setY( low.y() - deltaBottom );
mod = true;
}
if( !FloatUtil.isZero(deltaTop) ) {