@@ -167,18 +167,18 @@ EffectInstance::EffectInstance(Effect *owner, int64_t started, bool right, QWidg
167167 image_width = current_animation->currentImage ().width ();
168168 image_height = current_animation->currentImage ().height ();
169169
170- if (right){
171- offset = get_location (owner->location_right , owner->center_right );
172- }else {
173- offset = get_location (owner->location_left , owner->center_left );
174- }
175-
176170 if (ConfigWindow::getSetting<bool >(" general/small-ponies" )){
177171 image_width /= 2.0 ;
178172 image_height /= 2.0 ;
179173 current_animation->setScaledSize (current_animation->currentImage ().size () / 2.0 );
180174 }
181175
176+ if (right){
177+ offset = get_location (owner->location_right , owner->center_right );
178+ }else {
179+ offset = get_location (owner->location_left , owner->center_left );
180+ }
181+
182182 current_animation->start ();
183183 update_animation ();
184184 show ();
@@ -210,19 +210,18 @@ void EffectInstance::change_direction(bool right)
210210 image_width = current_animation->currentImage ().width ();
211211 image_height = current_animation->currentImage ().height ();
212212
213+ if (ConfigWindow::getSetting<bool >(" general/small-ponies" )){
214+ image_width /= 2.0 ;
215+ image_height /= 2.0 ;
216+ current_animation->setScaledSize (current_animation->currentImage ().size () / 2.0 );
217+ }
218+
213219 if (right){
214220 offset = get_location (owner->location_right , owner->center_right );
215221 }else {
216222 offset = get_location (owner->location_left , owner->center_left );
217223 }
218224
219- if (ConfigWindow::getSetting<bool >(" general/small-ponies" )){
220- image_width /= 2.0 ;
221- image_height /= 2.0 ;
222- current_animation->setScaledSize (current_animation->currentImage ().size () / 2.0 );
223- } else {
224- current_animation->setScaledSize (current_animation->currentImage ().size () / 2.0 );
225- }
226225 current_animation->start ();
227226 update_animation ();
228227}
0 commit comments