aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/TileRenderer.java9
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java3
2 files changed, 4 insertions, 8 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/TileRenderer.java b/src/jogl/classes/com/jogamp/opengl/util/TileRenderer.java
index deab8bc3e..999db77a9 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/TileRenderer.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/TileRenderer.java
@@ -188,8 +188,7 @@ public class TileRenderer extends TileRendererBase {
if( null == imageClippingDim ) {
imageClippingDim = new Dimension(width, height);
} else {
- imageClippingDim.setWidth(width);
- imageClippingDim.setHeight(height);
+ imageClippingDim.set(width, height);
}
reset();
}
@@ -245,10 +244,8 @@ public class TileRenderer extends TileRendererBase {
throw new IllegalArgumentException("Tile size must be > 0x0 minus 2*border");
}
tileBorder = border;
- tileSize.setWidth( width );
- tileSize.setHeight( height );
- tileSizeNB.setWidth( width - 2 * border );
- tileSizeNB.setHeight( height - 2 * border );
+ tileSize.set( width, height );
+ tileSizeNB.set( width - 2 * border, height - 2 * border );
reset();
}
diff --git a/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java b/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java
index d6c36aa14..0553d5673 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java
@@ -286,8 +286,7 @@ public abstract class TileRendererBase {
* @param height The height of the final image
*/
public void setImageSize(int width, int height) {
- imageSize.setWidth(width);
- imageSize.setHeight(height);
+ imageSize.set(width, height);
}
/** @see #setImageSize(int, int) */