aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-10-09 01:59:33 +0200
committerSven Gothel <[email protected]>2014-10-09 03:34:37 +0200
commitda52dd1299ec9b4951893733e86d708391494af0 (patch)
tree0ec121234039a5b3a55e2c611c3be3152c67f999 /src/nativewindow
parent279c5470bd99d6f9f3fdfd6aa91a2f9925c09f3b (diff)
Newt Screen viewport in windows units: Add missing setup in overriden calcVirtualScreenOriginAndSize(..) method (duplicate pixel unit)
Diffstat (limited to 'src/nativewindow')
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java b/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java
index acc7b722d..c30968c4b 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/util/Rectangle.java
@@ -76,6 +76,12 @@ public class Rectangle implements Cloneable, RectangleImmutable {
this.width = width;
this.height = height;
}
+ public final void set(final Rectangle s) {
+ this.x = s.x;
+ this.y = s.y;
+ this.width = s.width;
+ this.height = s.height;
+ }
public final void setX(final int x) { this.x = x; }
public final void setY(final int y) { this.y = y; }
public final void setWidth(final int width) { this.width = width; }