if (cp.supportsLocalCursor) {
encodings[nEncodings++] = Encodings.pseudoEncodingXCursor;
encodings[nEncodings++] = Encodings.pseudoEncodingCursor;
- encodings[nEncodings++] = Encodings.pseudoEncodingCursorWithAlpha;
+ if (cp.supportsLocalCursorWithAlpha)
+ encodings[nEncodings++] = Encodings.pseudoEncodingCursorWithAlpha;
}
if (cp.supportsDesktopResize)
encodings[nEncodings++] = Encodings.pseudoEncodingDesktopSize;
majorVersion = 0; minorVersion = 0;
width = 0; height = 0; useCopyRect = false;
supportsLocalCursor = false; supportsLocalXCursor = false;
+ supportsLocalCursorWithAlpha = false;
supportsDesktopResize = false; supportsExtendedDesktopSize = false;
supportsDesktopRename = false; supportsLastRect = false;
supportsSetDesktopSize = false; supportsFence = false;
{
useCopyRect = false;
supportsLocalCursor = false;
+ supportsLocalCursorWithAlpha = false;
supportsDesktopResize = false;
supportsExtendedDesktopSize = false;
supportsLocalXCursor = false;
case Encodings.pseudoEncodingXCursor:
supportsLocalXCursor = true;
break;
+ case Encodings.pseudoEncodingCursorWithAlpha:
+ supportsLocalCursorWithAlpha = true;
+ break;
case Encodings.pseudoEncodingDesktopSize:
supportsDesktopResize = true;
break;
public boolean supportsLocalCursor;
public boolean supportsLocalXCursor;
+ public boolean supportsLocalCursorWithAlpha;
public boolean supportsDesktopResize;
public boolean supportsExtendedDesktopSize;
public boolean supportsDesktopRename;
currentEncoding = encNum;
cp.supportsLocalCursor = true;
+ if (VncViewer.os.contains("windows"))
+ // JRE on Windows does not support alpha cursor
+ cp.supportsLocalCursorWithAlpha = false;
+ else
+ cp.supportsLocalCursorWithAlpha = true;
cp.supportsDesktopResize = true;
cp.supportsExtendedDesktopSize = true;
public static final InputStream timestamp =
VncViewer.class.getResourceAsStream("timestamp");
public static final String os =
- System.getProperty("os.name").toLowerCase();
+ System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
private static VncViewer applet;
private String defaultServerName;