mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 20:45:29 -04:00
Fixed bug in progress reporting.
This commit is contained in:
parent
e61f6f6d7b
commit
2a5736bea1
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user