diff options
Diffstat (limited to 'src/Gif.cpp')
-rw-r--r-- | src/Gif.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Gif.cpp b/src/Gif.cpp index f87b0ab..a9e7850 100644 --- a/src/Gif.cpp +++ b/src/Gif.cpp @@ -137,8 +137,8 @@ namespace dchat double timeElapsedMilli = (double)frameTimer.getElapsedTime().asMilliseconds(); // If gif is not redrawn for a while, then we want to reset it; otherwise the decoding loop will take too long time. // This means that if gif is not visible for a while and then it becomes visible, the gif will reset instead of trying to process several seconds of frames - if(timeElapsedMilli > 3000) - timeElapsedMilli = 0; + if(timeElapsedMilli > 3000.0) + timeElapsedMilli = 0.0; double frameDeltaCs = timeElapsedMilli * 0.1; // Centisecond frameTimer.restart(); timeElapsedCs += frameDeltaCs; |