From 8ca0acc5f4870db5fa7beae88340e96b48cf3b7c Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:10:22 -0500 Subject: hide charlayers on area switch background changes only applicable on servers which send displayable background updates on area switch --- src/animationlayer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/animationlayer.cpp') 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()) { -- cgit