• R/O
  • HTTP
  • SSH
  • HTTPS

CharacterManaJ: Commit

キャラクターなんとかJの本体


Commit MetaInfo

Revisionbb7b88052e1bee8539b6ad15a3a53a814f78b4de (tree)
Time2019-01-16 12:16:20
Authorseraphy <seraphy@user...>
Commiterseraphy

Log Message

チャネルサイズの計算に誤りがあった。length要素自身の長さを含めてなかった。

Change Summary

Incremental Difference

--- a/src/main/java/charactermanaj/graphics/io/PSDCreator.java
+++ b/src/main/java/charactermanaj/graphics/io/PSDCreator.java
@@ -156,7 +156,7 @@ public final class PSDCreator {
156156 int rawSize = width * height;
157157 for (int channel = 0; channel < channels.length; channel++) {
158158 dos.writeShort(channels[channel]);
159- dos.writeInt(rawSize);
159+ dos.writeInt(2 + rawSize);
160160 }
161161
162162 dos.write("8BIM".getBytes());
Show on old repository browser