mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 11:05:29 -04:00
Fixed image progress to work as specified.
This commit is contained in:
parent
5d3fb34e49
commit
73fc08f8c1
@ -110,10 +110,6 @@ public class IFFImageWriter extends ImageWriterBase {
|
||||
imageOutput.writeByte(0); // PAD
|
||||
}
|
||||
|
||||
// NOTE: Most progress is done in packImageData, however, as we need to
|
||||
// buffer, to write correct size, we defer the last 10 percent until now.
|
||||
processImageProgress(100f);
|
||||
|
||||
imageOutput.flush();
|
||||
}
|
||||
|
||||
@ -167,7 +163,7 @@ public class IFFImageWriter extends ImageWriterBase {
|
||||
}
|
||||
}
|
||||
|
||||
processImageProgress(y * 90f / height);
|
||||
processImageProgress(y * 100f / height);
|
||||
}
|
||||
|
||||
output.flush();
|
||||
@ -220,6 +216,7 @@ public class IFFImageWriter extends ImageWriterBase {
|
||||
|
||||
anno.writeChunk(imageOutput);
|
||||
header.writeChunk(imageOutput);
|
||||
|
||||
if (cmap != null) {
|
||||
//System.out.println("CMAP written");
|
||||
cmap.writeChunk(imageOutput);
|
||||
|
Loading…
x
Reference in New Issue
Block a user