diff options
author | Sven Gothel <[email protected]> | 2014-12-07 04:14:36 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-12-07 04:14:36 +0100 |
commit | a372a5db4e9c2d56545791a5a2233a5cdbd94523 (patch) | |
tree | 12257141e31cc3abed839b58ee86eeb038d9ac9e /src/nativewindow/classes | |
parent | 35622a7cef4a28ce7e32bf008ef331d9a0d9e3e2 (diff) |
Misc Fixes: Bug 1102 GLJPanel.setSurfaceScale(..); SurfaceSize.hashCode()
- Bug 1102: GLJPanel.setSurfaceScale(..)
Allow setting non-initialized GLJPanel surface scale.
TODO: More tests and probing before initialization.
- SurfaceSize.hashCode()
Resolution's hash code is already multiplied.
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java b/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java index 601e6dd71..fe1fa3b9d 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java +++ b/src/nativewindow/classes/javax/media/nativewindow/util/SurfaceSize.java @@ -105,7 +105,7 @@ public class SurfaceSize implements Comparable<SurfaceSize> { @Override public final int hashCode() { // 31 * x == (x << 5) - x - int hash = 31 + getResolution().hashCode(); + int hash = getResolution().hashCode(); hash = ((hash << 5) - hash) + getBitsPerPixel(); return hash; } |