aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aocharmovie.cpp4
-rw-r--r--src/aomovie.cpp1
-rw-r--r--src/aoscene.cpp1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/aocharmovie.cpp b/src/aocharmovie.cpp
index 252aab5..2fe90b6 100644
--- a/src/aocharmovie.cpp
+++ b/src/aocharmovie.cpp
@@ -35,8 +35,8 @@ void AOCharMovie::load_image(QString p_char, QString p_emote,
ao_app->get_image_suffix(ao_app->get_character_path(
p_char, emote_prefix + "/" +
p_emote)), // Path check if it's categorized into a folder
- ao_app->get_character_path(
- p_char, p_emote + ".png"), // Non-animated path if emote_prefix fails
+ ao_app->get_image_suffix(ao_app->get_character_path(
+ p_char, p_emote)), // Just use the non-prefixed image, animated or not
ao_app->get_image_suffix(
ao_app->get_theme_path("placeholder")), // Theme placeholder path
ao_app->get_image_suffix(ao_app->get_default_theme_path(
diff --git a/src/aomovie.cpp b/src/aomovie.cpp
index ac94921..196c1d3 100644
--- a/src/aomovie.cpp
+++ b/src/aomovie.cpp
@@ -9,6 +9,7 @@ AOMovie::AOMovie(QWidget *p_parent, AOApplication *p_ao_app) : QLabel(p_parent)
ao_app = p_ao_app;
m_movie = new QMovie();
+ m_movie->setCacheMode(QMovie::CacheAll);
this->setMovie(m_movie);
diff --git a/src/aoscene.cpp b/src/aoscene.cpp
index 594013a..78d69ac 100644
--- a/src/aoscene.cpp
+++ b/src/aoscene.cpp
@@ -7,6 +7,7 @@ AOScene::AOScene(QWidget *parent, AOApplication *p_ao_app) : QLabel(parent)
m_parent = parent;
ao_app = p_ao_app;
m_movie = new QMovie(this);
+ m_movie->setCacheMode(QMovie::CacheAll);
last_image = "";
}