summaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/decoder
diff options
context:
space:
mode:
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-24 09:09:31 +0000
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-24 09:09:31 +0000
commit191695b3115fe410392bb9f8c460819944b0af75 (patch)
treeaa9bbc6594909c70ae8393ee7cd1cad4d2c262d1 /java/src/com/tightvnc/decoder
parent1214ab114395fe16d9c86fe273d51ad8f36751d6 (diff)
downloadtigervnc-191695b3115fe410392bb9f8c460819944b0af75.tar.gz
tigervnc-191695b3115fe410392bb9f8c460819944b0af75.zip
[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
Diffstat (limited to 'java/src/com/tightvnc/decoder')
-rw-r--r--java/src/com/tightvnc/decoder/TightDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/tightvnc/decoder/TightDecoder.java b/java/src/com/tightvnc/decoder/TightDecoder.java
index 33ba7dbb..ef07f9c6 100644
--- a/java/src/com/tightvnc/decoder/TightDecoder.java
+++ b/java/src/com/tightvnc/decoder/TightDecoder.java
@@ -57,7 +57,7 @@ public class TightDecoder extends RawDecoder implements ImageObserver {
// JPEG processing statistic methods
//
- public int getNumJPEGRects() {
+ public long getNumJPEGRects() {
return statNumRectsTightJPEG;
}
@@ -69,7 +69,7 @@ public class TightDecoder extends RawDecoder implements ImageObserver {
// Tight processing statistic methods
//
- public int getNumTightRects() {
+ public long getNumTightRects() {
return statNumRectsTight;
}
@@ -489,7 +489,7 @@ public class TightDecoder extends RawDecoder implements ImageObserver {
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;
}