summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-10-10 03:37:21 +0200
committerSven Gothel <[email protected]>2014-10-10 03:37:21 +0200
commite2d7816823039fc75be809d64b88a3d3af9cdca8 (patch)
treea541f1317419bcba2a240208baa7ad85d6d7883a /src/nativewindow/classes
parent1c5758f1e006e51d7a64ed3ea35f7485419e094f (diff)
Bug 1093 - NEWT PointerIcon swizzled on X11 and OSX; WindowIcon swizzled on OSX ([R] -> [B])
Following mistakes were made in native PixelFormat for PointerIcon and WindowIcon: PointerIcon: X11: RGBA8888 -> BGRA8888 OSX: BGRA8888 -> RGBA8888 WindowIcon: OSX: BGRA8888 -> RGBA8888 Test case: TestWindowAndPointerIconNEWT (requires visual validation) +++ Summary: PointerIcon: BGRA8888: X11, Win32 RGBA8888: OSX WindowIcon: BGRA8888: X11, Win32 RGBA8888: OSX +++ Reported by 'LT' <http://forum.jogamp.org/Mac-OSX-newt-pointer-and-window-icon-displays-incorrectly-tp4033294.html>
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/util/PixelFormat.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/PixelFormat.java b/src/nativewindow/classes/javax/media/nativewindow/util/PixelFormat.java
index fd3c31f7f..e5901f584 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/util/PixelFormat.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/util/PixelFormat.java
@@ -119,7 +119,8 @@ public enum PixelFormat {
* <ul>
* <li>OpenGL: data-format GL_RGBA, data-type GL_UNSIGNED_BYTE</li>
* <li>AWT: <i>None</i></li>
- * <li>PointerIcon: X11 (XCURSOR)</li>
+ * <li>PointerIcon: OSX (NSBitmapImageRep)</li>
+ * <li>Window Icon: OSX (NSBitmapImageRep)</li>
* <li>PNGJ: Scanlines</li>
* </ul>
* </p>
@@ -175,8 +176,8 @@ public enum PixelFormat {
* <ul>
* <li>OpenGL: data-format GL_BGRA, data-type GL_UNSIGNED_BYTE</li>
* <li>AWT: {@link java.awt.image.BufferedImage#TYPE_INT_ARGB TYPE_INT_ARGB}</li>
- * <li>PointerIcon: Win32, OSX (NSBitmapImageRep), AWT</li>
- * <li>Window Icon: X11, Win32, OSX (NSBitmapImageRep)</li>
+ * <li>PointerIcon: X11 (XCURSOR), Win32, AWT</li>
+ * <li>Window Icon: X11, Win32</li>
* </ul>
* </p>
*/