diff options
| author | cents <sens03.con@gmail.com> | 2020-05-23 09:23:42 -0700 |
|---|---|---|
| committer | cents <sens03.con@gmail.com> | 2020-05-23 09:23:42 -0700 |
| commit | 86cc7950061f3efb346cc7510d71dfb681a26172 (patch) | |
| tree | c54c919aeac4ce76bbd3a6688b90994319feae9f | |
| parent | d89a4370a753f6e1da22349866b1b00f638884a6 (diff) | |
Other image formats now support the present evidence
| -rw-r--r-- | src/aoevidencedisplay.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/aoevidencedisplay.cpp b/src/aoevidencedisplay.cpp index 9dd062b7..64e4e24d 100644 --- a/src/aoevidencedisplay.cpp +++ b/src/aoevidencedisplay.cpp @@ -34,11 +34,11 @@ void AOEvidenceDisplay::show_evidence(QString p_evidence_image, if (is_left_side) { icon_identifier = "left_evidence_icon"; - gif_name = "evidence_appear_left.gif"; + gif_name = "evidence_appear_left"; } else { icon_identifier = "right_evidence_icon"; - gif_name = "evidence_appear_right.gif"; + gif_name = "evidence_appear_right"; } pos_size_type icon_dimensions = @@ -49,9 +49,8 @@ void AOEvidenceDisplay::show_evidence(QString p_evidence_image, evidence_icon->setPixmap(f_pixmap.scaled( evidence_icon->width(), evidence_icon->height(), Qt::IgnoreAspectRatio)); - - QString f_default_gif_path = ao_app->get_default_theme_path(gif_name); - QString f_gif_path = ao_app->get_theme_path(gif_name); + QString f_default_gif_path = ao_app->get_image_suffix(ao_app->get_default_theme_path(gif_name)); + QString f_gif_path = ao_app->get_image_suffix(ao_app->get_theme_path(gif_name)); if (file_exists(f_gif_path)) final_gif_path = f_gif_path; |
