Skip to content

Commit 8d96bd2

Browse files
committed
R replace field with param
1 parent 2d6cdd3 commit 8d96bd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

approvaltests/src/main/java/org/approvaltests/awt/GifSequenceWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static File writeAnimatedGif(File imageFile, ArrayList<BufferedImage> images, Du
9797
{
9898
for (BufferedImage image : images)
9999
{
100-
writer.writeToSequence(image);
100+
writer.writeToSequence(image, timeBetweenFrames);
101101
}
102102
}
103103
}
@@ -107,7 +107,7 @@ static File writeAnimatedGif(File imageFile, ArrayList<BufferedImage> images, Du
107107
}
108108
return imageFile;
109109
}
110-
public void writeToSequence(RenderedImage img) throws IOException
110+
public void writeToSequence(RenderedImage img, Duration timeBetweenFrames) throws IOException
111111
{
112112
gifWriter.writeToSequence(new IIOImage(img, null, getMetadata(timeBetweenFrames)), imageWriteParam);
113113
}

0 commit comments

Comments
 (0)