diff options
Diffstat (limited to 'java/com/tigervnc/vncviewer/PlatformPixelBuffer.java')
-rw-r--r-- | java/com/tigervnc/vncviewer/PlatformPixelBuffer.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/java/com/tigervnc/vncviewer/PlatformPixelBuffer.java b/java/com/tigervnc/vncviewer/PlatformPixelBuffer.java index e0e24f06..8fc2760b 100644 --- a/java/com/tigervnc/vncviewer/PlatformPixelBuffer.java +++ b/java/com/tigervnc/vncviewer/PlatformPixelBuffer.java @@ -27,12 +27,11 @@ import com.tigervnc.rfb.*; abstract public class PlatformPixelBuffer extends PixelBuffer { - public PlatformPixelBuffer(int w, int h, CConn cc_, DesktopWindow desktop_) { - cc = cc_; + public PlatformPixelBuffer(PixelFormat pf, int w, int h, DesktopWindow desktop_) { desktop = desktop_; PixelFormat nativePF = getNativePF(); - if (nativePF.depth > cc.serverPF.depth) { - setPF(cc.serverPF); + if (nativePF.depth > pf.depth) { + setPF(pf); } else { setPF(nativePF); } @@ -103,7 +102,6 @@ abstract public class PlatformPixelBuffer extends PixelBuffer byte[] greens; byte[] blues; - CConn cc; DesktopWindow desktop; static LogWriter vlog = new LogWriter("PlatformPixelBuffer"); } |