Made the position field editable in paused and stopped modes.
Preparing for implementation of seeking to an arbitrary point.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2508 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/rfbplayer/VncCanvas.java b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
index f421df5..e0d9994 100644
--- a/java/src/com/tightvnc/rfbplayer/VncCanvas.java
+++ b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
@@ -225,7 +225,7 @@
throw new EOFException("Playback stopped");
}
if (player.getMode() == player.MODE_PLAYBACK) {
- player.fbsStream.resumeReading();
+ player.fbsStream.resumePlayback();
}
}
@@ -828,8 +828,9 @@
//
void scheduleRepaint(int x, int y, int w, int h) {
- // Request repaint, deferred if necessary.
- repaint(player.deferScreenUpdates, x, y, w, h);
+ // Request repaint if not in the seeking mode.
+ if (!player.fbsStream.isSeeking())
+ repaint(player.deferScreenUpdates, x, y, w, h);
}
}