aboutsummaryrefslogtreecommitdiff
path: root/src/Gif.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-23 18:49:45 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-23 18:49:52 +0200
commit7e7dfd227eacaa80b21ca8ed99e8a99ccbd47769 (patch)
tree016e3907471ae1b588c35cf963ea2551efc57cfc /src/Gif.cpp
parent3ab4127ae3fc3b837f5350509c78db03467500cd (diff)
Add side bar, make submodule public
Diffstat (limited to 'src/Gif.cpp')
-rw-r--r--src/Gif.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Gif.cpp b/src/Gif.cpp
index b1f4fd3..eed5b98 100644
--- a/src/Gif.cpp
+++ b/src/Gif.cpp
@@ -107,6 +107,7 @@ namespace dchat
if(!texture.create(gif.width, gif.height))
throw GifLoadException("Failed to create texture for gif");
+ texture.setSmooth(true);
sprite.setTexture(texture, true);
}
@@ -157,6 +158,8 @@ namespace dchat
if(currentFrame != startFrame)
{
texture.update(image);
+ // TODO: Check if this is too heavy
+ texture.generateMipmap();
sprite.setTexture(texture, true);
}
target.draw(sprite);