From 39bed561a04dab457663aaa651e9c9f1f7c12270 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 9 Oct 2014 01:59:33 +0200 Subject: Newt Screen viewport in windows units: Add missing setup in overriden calcVirtualScreenOriginAndSize(..) method (duplicate pixel unit) --- .../classes/javax/media/nativewindow/util/Rectangle.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nativewindow/classes') 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; } -- cgit v1.2.3