summaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rfb/RawDecoder.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/RawDecoder.java
parent6e84186556f4c7281ec057766ac4fe0f64733068 (diff)
downloadtigervnc-b408d0a2dbc9a76937c76e783ffb08d8e5f1ada9.tar.gz
tigervnc-b408d0a2dbc9a76937c76e783ffb08d8e5f1ada9.zip
RFB refactoring to sync with native client
Diffstat (limited to 'java/com/tigervnc/rfb/RawDecoder.java')
-rw-r--r--java/com/tigervnc/rfb/RawDecoder.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/java/com/tigervnc/rfb/RawDecoder.java b/java/com/tigervnc/rfb/RawDecoder.java
index 71b79607..386845ed 100644
--- a/java/com/tigervnc/rfb/RawDecoder.java
+++ b/java/com/tigervnc/rfb/RawDecoder.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
@@ -25,18 +26,18 @@ public class RawDecoder extends Decoder {
public RawDecoder() { super(DecoderFlags.DecoderPlain); }
public void readRect(Rect r, InStream is,
- ConnParams cp, OutStream os)
+ ServerParams server, OutStream os)
{
- os.copyBytes(is, r.area() * cp.pf().bpp/8);
+ os.copyBytes(is, r.area() * server.pf().bpp/8);
}
static LogWriter vlog = new LogWriter("RawDecoder");
public void decodeRect(Rect r, Object buffer,
- int buflen, ConnParams cp,
+ int buflen, ServerParams server,
ModifiablePixelBuffer pb)
{
- assert(buflen >= r.area() * cp.pf().bpp/8);
- pb.imageRect(cp.pf(), r, (byte[])buffer);
+ assert(buflen >= r.area() * server.pf().bpp/8);
+ pb.imageRect(server.pf(), r, (byte[])buffer);
}
}