mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-03 23:53:15 -04:00
Fixed bug in progress reporting.
This commit is contained in:
@@ -277,13 +277,13 @@ public final class PCXImageReader extends ImageReaderBase {
|
|||||||
throw new AssertionError();
|
throw new AssertionError();
|
||||||
}
|
}
|
||||||
|
|
||||||
processImageProgress(100f * y / height * c / header.getChannels());
|
|
||||||
|
|
||||||
if (abortRequested()) {
|
if (abortRequested()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processImageProgress(100f * y / height);
|
||||||
|
|
||||||
if (y >= srcRegion.y + srcRegion.height) {
|
if (y >= srcRegion.y + srcRegion.height) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -300,6 +300,11 @@ public final class PCXImageReader extends ImageReaderBase {
|
|||||||
return destination;
|
return destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void processImageProgress(float percentageDone) {
|
||||||
|
// System.err.println("percentageDone: " + percentageDone);
|
||||||
|
super.processImageProgress(percentageDone);
|
||||||
|
}
|
||||||
|
|
||||||
private void readRowByte(final DataInput input,
|
private void readRowByte(final DataInput input,
|
||||||
Rectangle srcRegion,
|
Rectangle srcRegion,
|
||||||
int xSub,
|
int xSub,
|
||||||
|
Reference in New Issue
Block a user