Code refactoring. Now RfbPlayer maintains FbsInputStream and RfbProto instances separately. Also, RfbProto does not need FbsInputStream any more, it can work with any InputStream.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2589 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/rfbplayer/VncCanvas.java b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
index 8c3313b..7bb8d29 100644
--- a/java/src/com/tightvnc/rfbplayer/VncCanvas.java
+++ b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
@@ -353,7 +353,7 @@
// Tell our FbsInputStream object to notify us when it goes to the
// `paused' mode.
- rfb.fbs.addObserver(this);
+ appClass.fbs.addObserver(this);
//
// main dispatch loop
@@ -1004,7 +1004,7 @@
// Tell JVM to repaint specified desktop area.
//
void scheduleRepaint(int x, int y, int w, int h) {
- if (rfb.fbs.isSeeking()) {
+ if (appClass.fbs.isSeeking()) {
// Do nothing, and remember we are seeking.
seekMode = true;
} else {
@@ -1315,7 +1315,7 @@
}
void scheduleCursorRepaint(int x, int y, int w, int h, int n) {
- if (rfb.fbs.isSeeking()) {
+ if (appClass.fbs.isSeeking()) {
// Do nothing, and remember we are seeking.
seekMode = true;
} else {