@@ -98,9 +98,10 @@ void AOLayer::center_pixmap(QPixmap f_pixmap) {
9898 x + (f_w - f_pixmap.width ()) / 2 ,
9999 y + (f_h - f_pixmap.height ())); // Always center horizontally, always put
100100 // at the bottom vertically
101- this ->setMask (
102- QRegion ((f_pixmap.width () - f_w) / 2 , (f_pixmap.height () - f_h) / 2 , f_w,
103- f_h)); // make sure we don't escape the area we've been given
101+ if (masked)
102+ this ->setMask (
103+ QRegion ((f_pixmap.width () - f_w) / 2 , (f_pixmap.height () - f_h) / 2 , f_w,
104+ f_h)); // make sure we don't escape the area we've been given
104105}
105106
106107void AOLayer::combo_resize (int w, int h)
@@ -196,20 +197,20 @@ void CharLayer::load_image(QString p_filename, QString p_charname,
196197 << " continuous: " << continuous;
197198#endif
198199 QStringList pathlist = {
199- ao_app->get_image_suffix (ao_app-> get_character_path (
200- p_charname, prefix + current_emote)) , // Default path
201- ao_app->get_image_suffix (ao_app-> get_character_path (
200+ ao_app->get_character_path (
201+ p_charname, prefix + current_emote), // Default path
202+ ao_app->get_character_path (
202203 p_charname,
203- prefix + " /" + current_emote)) , // Path check if it's categorized
204+ prefix + " /" + current_emote), // Path check if it's categorized
204205 // into a folder
205- ao_app->get_image_suffix (ao_app-> get_character_path (
206+ ao_app->get_character_path (
206207 p_charname,
207- current_emote)) , // Just use the non-prefixed image, animated or not
208- ao_app-> get_image_suffix (
209- ao_app->get_theme_path (" placeholder" ) ), // Theme placeholder path
210- ao_app->get_image_suffix (ao_app-> get_theme_path (
211- " placeholder" , ao_app->default_theme )) }; // Default theme placeholder path
212- start_playback (find_image (pathlist));
208+ current_emote), // Just use the non-prefixed image, animated or not
209+ current_emote, // The path by itself after the above fail
210+ ao_app->get_theme_path (" placeholder" ), // Theme placeholder path
211+ ao_app->get_theme_path (
212+ " placeholder" , ao_app->default_theme )}; // Default theme placeholder path
213+ start_playback (ao_app-> get_image_path (pathlist));
213214}
214215
215216void SplashLayer::load_image (QString p_filename, QString p_charname,
0 commit comments