]> source.dussan.org Git - tigervnc.git/commitdiff
Fix edge of dot cursor in Java vncviewer 1492/head
authorKrystof Pistek <krystof1119@gmail.com>
Wed, 6 Jul 2022 15:24:39 +0000 (17:24 +0200)
committerKrystof Pistek <krystof1119@gmail.com>
Wed, 6 Jul 2022 15:24:39 +0000 (17:24 +0200)
This commit changes the color of the edges of the dot cursor in the Java
version of vncviewer from fully transparent to white, bringing it in
line with the C++ native version.

java/com/tigervnc/vncviewer/Viewport.java

index 43316034d60c3207bbd3daedebbd8923148255f1..2e5e42d60535620c9e69a44de5be9a555061c5a4 100644 (file)
@@ -149,11 +149,11 @@ class Viewport extends JPanel implements ActionListener {
   }
 
   static final int[] dotcursor_xpm = {
-    0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
-    0x00000000, 0xff000000, 0xff000000, 0xff000000, 0x00000000,
-    0x00000000, 0xff000000, 0xff000000, 0xff000000, 0x00000000,
-    0x00000000, 0xff000000, 0xff000000, 0xff000000, 0x00000000,
-    0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
+    0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff,
+    0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff,
+    0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff,
+    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
   };
 
   public void setCursor(int width, int height, Point hotspot,