aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rfb/PixelBuffer.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/rfb/PixelBuffer.java')
-rw-r--r--java/com/tigervnc/rfb/PixelBuffer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/tigervnc/rfb/PixelBuffer.java b/java/com/tigervnc/rfb/PixelBuffer.java
index 43713550..cca82860 100644
--- a/java/com/tigervnc/rfb/PixelBuffer.java
+++ b/java/com/tigervnc/rfb/PixelBuffer.java
@@ -45,7 +45,7 @@ public class PixelBuffer {
int gmask = pf.greenMax << pf.greenShift;
int bmask = pf.blueMax << pf.blueShift;
cm = new DirectColorModel(8, rmask, gmask, bmask);
- if (pf.depth == 8 && !pf.trueColour)
+ if (!pf.trueColour)
cm = new IndexColorModel(8, 256, new byte[256], new byte[256], new byte[256]);
break;
case 16: