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 3f7216e..b1f4fd3 100644 --- a/src/Gif.cpp +++ b/src/Gif.cpp @@ -127,7 +127,7 @@ namespace dchat sprite.setScale(size.x / (float)textureSize.x, size.y / (float)textureSize.y); } - void Gif::draw(sf::RenderWindow &window) + void Gif::draw(sf::RenderTarget &target) { double frameDeltaCs = (double)frameTimer.getElapsedTime().asMilliseconds() * 0.1; // Centisecond frameTimer.restart(); @@ -159,7 +159,7 @@ namespace dchat texture.update(image); sprite.setTexture(texture, true); } - window.draw(sprite); + target.draw(sprite); } bool Gif::isDataGif(const StringView &data) |