diff options
-rw-r--r-- | src/render.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render.cpp b/src/render.cpp index 54fbe58..a923c1d 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -51,6 +51,7 @@ void register_tile(uint8_t type, const char *top, const char *side, float height tile->top = new sf::Texture; tile->top->loadFromFile(top); tile->top->setRepeated(true); + tile->top->setSmooth(true); if (height > 0.0f) { tile->height = height; @@ -58,6 +59,7 @@ void register_tile(uint8_t type, const char *top, const char *side, float height tile->side = new sf::Texture; tile->side->loadFromFile(side); tile->side->setRepeated(true); + tile->side->setSmooth(true); } tile->layer = layer; @@ -546,6 +548,8 @@ bool animated_texture_t::load(std::string prefix, size_t frame_count_) frame_count = 0; return false; } + + frames[i].setSmooth(true); } return true; |