aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rfb/ZRLEDecoder.java
diff options
context:
space:
mode:
authorBrian P. Hinz <bphinz@users.sf.net>2019-11-21 20:00:49 -0500
committerBrian P. Hinz <bphinz@users.sf.net>2019-11-21 20:04:10 -0500
commitb408d0a2dbc9a76937c76e783ffb08d8e5f1ada9 (patch)
tree6214fc7031862a4d1564cb4ce30fc5a92ab730d6 /java/com/tigervnc/rfb/ZRLEDecoder.java
parent6e84186556f4c7281ec057766ac4fe0f64733068 (diff)
downloadtigervnc-b408d0a2dbc9a76937c76e783ffb08d8e5f1ada9.tar.gz
tigervnc-b408d0a2dbc9a76937c76e783ffb08d8e5f1ada9.zip
RFB refactoring to sync with native client
Diffstat (limited to 'java/com/tigervnc/rfb/ZRLEDecoder.java')
-rw-r--r--java/com/tigervnc/rfb/ZRLEDecoder.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/com/tigervnc/rfb/ZRLEDecoder.java b/java/com/tigervnc/rfb/ZRLEDecoder.java
index 03692b96..bd49ab43 100644
--- a/java/com/tigervnc/rfb/ZRLEDecoder.java
+++ b/java/com/tigervnc/rfb/ZRLEDecoder.java
@@ -1,4 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ * Copyright (C) 2019 Brian P. Hinz
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -52,7 +53,7 @@ public class ZRLEDecoder extends Decoder {
}
public void readRect(Rect r, InStream is,
- ConnParams cp, OutStream os)
+ ServerParams server, OutStream os)
{
int len;
@@ -62,11 +63,11 @@ public class ZRLEDecoder extends Decoder {
}
public void decodeRect(Rect r, Object buffer,
- int buflen, ConnParams cp,
+ int buflen, ServerParams server,
ModifiablePixelBuffer pb)
{
MemInStream is = new MemInStream((byte[])buffer, 0, buflen);
- PixelFormat pf = cp.pf();
+ PixelFormat pf = server.pf();
switch (pf.bpp) {
case 8: zrleDecode8(r, is, zis, pf, pb); break;
case 16: zrleDecode16(r, is, zis, pf, pb); break;