aboutsummaryrefslogtreecommitdiff
path: root/src/Gif.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-07 06:34:22 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-07 06:34:24 +0200
commit9ebc3e3f5cf4847239d04cf5b3b01d0b1855a039 (patch)
tree7a421d42e8945a1718b9c54f474acbb2d2478c28 /src/Gif.cpp
parent7a2cb2c4b81a8a0696d3a11ce8781542f181bb12 (diff)
Continue text edit, add avatar (image, but not way to change avatar)
Diffstat (limited to 'src/Gif.cpp')
-rw-r--r--src/Gif.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Gif.cpp b/src/Gif.cpp
index c79153c..69c0be8 100644
--- a/src/Gif.cpp
+++ b/src/Gif.cpp
@@ -149,7 +149,7 @@ namespace dchat
sprite.setScale(scale);
}
- void Gif::draw(sf::RenderTarget &target)
+ void Gif::draw(sf::RenderTarget &target, const sf::RenderStates &renderState)
{
double timeElapsedMilli = (double)frameTimer.getElapsedTime().asMilliseconds();
// If gif is not redrawn for a while, then we reset timer (gif is paused). This happens when gif is not visible and then appears visible
@@ -196,7 +196,7 @@ namespace dchat
texture.generateMipmap();
sprite.setTexture(texture, true);
}
- target.draw(sprite);
+ target.draw(sprite, renderState);
}
bool Gif::isDataGif(const StringView &data)