diff options
| author | Crystalwarrior <varsash@gmail.com> | 2021-03-24 23:05:09 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2021-03-24 23:05:09 +0300 |
| commit | 37de947a3df3c90b27562515f5d3a1e05ad40de5 (patch) | |
| tree | e3925beb6a3649dd3dfd49f852262b2334b01d62 /src/aoimage.cpp | |
| parent | e9eba9b5ab1b022905d2f6dbe8e6ad2e2a516372 (diff) | |
Mark ui_selector, ui_passworded, ui_taken for evidence and character select as static-only due to massice performance overhead for no substantial benefit
Diffstat (limited to 'src/aoimage.cpp')
| -rw-r--r-- | src/aoimage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/aoimage.cpp b/src/aoimage.cpp index e1bd8b8c..142189c2 100644 --- a/src/aoimage.cpp +++ b/src/aoimage.cpp @@ -4,11 +4,12 @@ #include <QBitmap> -AOImage::AOImage(QWidget *parent, AOApplication *p_ao_app) : QLabel(parent) +AOImage::AOImage(QWidget *parent, AOApplication *p_ao_app, bool make_static) : QLabel(parent) { m_parent = parent; ao_app = p_ao_app; movie = new QMovie(); + is_static = make_static; connect(movie, &QMovie::frameChanged, [=]{ QPixmap f_pixmap = movie->currentPixmap(); f_pixmap = @@ -23,7 +24,7 @@ AOImage::~AOImage() {} bool AOImage::set_image(QString p_path, QString p_misc) { // Check if the user wants animated themes - if (ao_app->get_animated_theme()) + if (!is_static && ao_app->get_animated_theme()) // We want an animated image p_path = ao_app->get_image(p_path, ao_app->current_theme, ao_app->get_subtheme(), ao_app->default_theme, p_misc); else |
