aboutsummaryrefslogtreecommitdiff
path: root/src/animationlayer.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-06-11 18:10:22 -0500
committerin1tiate <32779090+in1tiate@users.noreply.github.com>2024-06-11 18:10:22 -0500
commit8ca0acc5f4870db5fa7beae88340e96b48cf3b7c (patch)
tree2d796c6cba8a160167754ec8bcf986d68da94fe3 /src/animationlayer.cpp
parent7897033205e7100c5fdcb0d9d17629850fa60266 (diff)
hide charlayers on area switch background changes
only applicable on servers which send displayable background updates on area switch
Diffstat (limited to 'src/animationlayer.cpp')
-rw-r--r--src/animationlayer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/animationlayer.cpp b/src/animationlayer.cpp
index 708aef2..779e27c 100644
--- a/src/animationlayer.cpp
+++ b/src/animationlayer.cpp
@@ -257,6 +257,8 @@ void AnimationLayer::calculateFrameGeometry()
int x = (m_scaled_frame_size.width() - widget_size.width()) / 2;
m_display_rect = QRect(x, 0, widget_size.width(), m_scaled_frame_size.height());
+ qDebug() << (scale < 1.0);
+
if (m_transformation_mode_hint == Qt::FastTransformation)
{
m_transformation_mode = scale < 1.0 ? Qt::SmoothTransformation : Qt::FastTransformation;
@@ -459,7 +461,8 @@ void CharacterAnimationLayer::loadCharacterEmote(QString character, QString file
setFileName(file_path);
setPlayOnce(play_once);
- setTransformationMode(ao_app->get_scaling(ao_app->get_emote_property(character, fileName, "scaling")));
+ Qt::TransformationMode char_transform = ao_app->get_scaling(ao_app->get_emote_property(character, fileName, "scaling"));
+ setTransformationMode(char_transform);
setStretchToFit(ao_app->get_emote_property(character, fileName, "stretch").startsWith("true"));
if (synchronize_frame && previous_frame_count == frameCount())
{