From e2d7816823039fc75be809d64b88a3d3af9cdca8 Mon Sep 17 00:00:00 2001
From: Sven Gothel
Date: Fri, 10 Oct 2014 03:37:21 +0200
Subject: 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'
---
.../classes/javax/media/nativewindow/util/PixelFormat.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'src/nativewindow/classes/javax')
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 {
*
* - OpenGL: data-format GL_RGBA, data-type GL_UNSIGNED_BYTE
* - AWT: None
- * - PointerIcon: X11 (XCURSOR)
+ * - PointerIcon: OSX (NSBitmapImageRep)
+ * - Window Icon: OSX (NSBitmapImageRep)
* - PNGJ: Scanlines
*
*
@@ -175,8 +176,8 @@ public enum PixelFormat {
*
* - OpenGL: data-format GL_BGRA, data-type GL_UNSIGNED_BYTE
* - AWT: {@link java.awt.image.BufferedImage#TYPE_INT_ARGB TYPE_INT_ARGB}
- * - PointerIcon: Win32, OSX (NSBitmapImageRep), AWT
- * - Window Icon: X11, Win32, OSX (NSBitmapImageRep)
+ * - PointerIcon: X11 (XCURSOR), Win32, AWT
+ * - Window Icon: X11, Win32
*
*
*/
--
cgit v1.2.3