[BugFix] Negative statistics (pixel data, update rectangles etc). Fixed by replacing statistics variables type from int to long.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3457 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/decoder/TightDecoder.java b/java/src/com/tightvnc/decoder/TightDecoder.java
index 33ba7db..ef07f9c 100644
--- a/java/src/com/tightvnc/decoder/TightDecoder.java
+++ b/java/src/com/tightvnc/decoder/TightDecoder.java
@@ -57,7 +57,7 @@
// JPEG processing statistic methods
//
- public int getNumJPEGRects() {
+ public long getNumJPEGRects() {
return statNumRectsTightJPEG;
}
@@ -69,7 +69,7 @@
// Tight processing statistic methods
//
- public int getNumTightRects() {
+ public long getNumTightRects() {
return statNumRectsTight;
}
@@ -489,7 +489,7 @@
private Rectangle jpegRect;
private Repaintable repainatableControl = null;
// Jpeg decoding statistics
- private int statNumRectsTightJPEG = 0;
+ private long statNumRectsTightJPEG = 0;
// Tight decoding statistics
- private int statNumRectsTight = 0;
+ private long statNumRectsTight = 0;
}