changeset 7352:83f65386cca4

RT-37707 [Monocle] Software cursor is too transparent
author Daniel Blaukopf <daniel.blaukopf@oracle.com>
date Wed, 25 Jun 2014 16:53:34 +0300
parents afba65e76862
children a193ba23a602
files modules/graphics/src/main/java/com/sun/glass/ui/monocle/SoftwareCursor.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/SoftwareCursor.java	Wed Jun 25 16:43:16 2014 +0300
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/SoftwareCursor.java	Wed Jun 25 16:53:34 2014 +0300
@@ -29,6 +29,7 @@
 
 import java.nio.Buffer;
 import java.nio.ByteBuffer;
+import java.nio.ByteOrder;
 
 class SoftwareCursor extends NativeCursor {
 
@@ -55,6 +56,7 @@
     void setImage(byte[] cursorImage) {
         cursorBuffer = ByteBuffer.allocate(cursorImage.length);
         NativeCursors.colorKeyCursor(cursorImage, cursorBuffer.asIntBuffer(), 32, 0);
+        cursorBuffer = cursorBuffer.order(ByteOrder.nativeOrder());
     }
 
     @Override