From d408adbd07dc21c908f14ea26ce793de0875a9fe Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 23 Dec 2016 14:57:38 +0100 Subject: [PATCH] Use better name for variable. --- src/ImageSharp/Formats/Gif/GifDecoderCore.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ImageSharp/Formats/Gif/GifDecoderCore.cs b/src/ImageSharp/Formats/Gif/GifDecoderCore.cs index 61ad97f9ad..c3eb075f30 100644 --- a/src/ImageSharp/Formats/Gif/GifDecoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifDecoderCore.cs @@ -42,9 +42,9 @@ namespace ImageSharp.Formats private int globalColorTableLength; /// - /// The next frame. + /// The previous frame. /// - private ImageFrame nextFrame; + private ImageFrame previousFrame; /// /// The area to restore. @@ -319,7 +319,7 @@ namespace ImageSharp.Formats ImageBase image; - if (this.nextFrame == null) + if (this.previousFrame == null) { image = this.decodedImage; @@ -333,10 +333,10 @@ namespace ImageSharp.Formats if (this.graphicsControlExtension != null && this.graphicsControlExtension.DisposalMethod == DisposalMethod.RestoreToPrevious) { - previousFrame = this.nextFrame; + previousFrame = this.previousFrame; } - currentFrame = this.nextFrame.Clone(); + currentFrame = this.previousFrame.Clone(); image = currentFrame; @@ -416,11 +416,11 @@ namespace ImageSharp.Formats if (previousFrame != null) { - this.nextFrame = previousFrame; + this.previousFrame = previousFrame; return; } - this.nextFrame = currentFrame == null ? this.decodedImage.ToFrame() : currentFrame.Clone(); + this.previousFrame = currentFrame == null ? this.decodedImage.ToFrame() : currentFrame; if (this.graphicsControlExtension != null && this.graphicsControlExtension.DisposalMethod == DisposalMethod.RestoreToBackground)