aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorLeifa <26681464+TrickyLeifa@users.noreply.github.com>2024-07-13 15:31:51 +0200
committerGitHub <noreply@github.com>2024-07-13 15:31:51 +0200
commit23077d0291426037b6b120cf765664b4487c9330 (patch)
treeb1835d2d97791a99feb6d428ea6d3c2c941960d7 /src/courtroom.cpp
parenta09712cc4d11ace7ae0476a1d1f060abfa8de445 (diff)
Resize mode patch (#1019)
* Fix transformation mode for layers Resolve #997 * always use smooth transform resampling for stretched images * Used fixed frame size * Implemented resize mode changes Resolve #999 * Added alias to pixel resize mode * Added user option --------- Co-authored-by: in1tiate <32779090+in1tiate@users.noreply.github.com>
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 6def0b5e..cea7ba07 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -159,7 +159,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app)
ui_music_list->setObjectName("ui_music_list");
ui_music_display = new kal::InterfaceAnimationLayer(ao_app, this);
- ui_music_display->setTransformationMode(Qt::SmoothTransformation);
+ ui_music_display->setResizeMode(SMOOTH_RESIZE_MODE);
ui_music_display->setAttribute(Qt::WA_TransparentForMouseEvents);
ui_music_display->setObjectName("ui_music_display");
@@ -3152,8 +3152,8 @@ void Courtroom::do_effect(QString fx_path, QString fx_sound, QString p_char, QSt
{
return;
}
- ui_vp_effect->setTransformationMode(ao_app->get_scaling(ao_app->get_effect_property(fx_path, p_char, p_folder, "scaling")));
ui_vp_effect->setStretchToFit(ao_app->get_effect_property(fx_path, p_char, p_folder, "stretch").startsWith("true"));
+ ui_vp_effect->setResizeMode(ao_app->get_scaling(ao_app->get_effect_property(fx_path, p_char, p_folder, "scaling")));
ui_vp_effect->setFlipped(ao_app->get_effect_property(fx_path, p_char, p_folder, "respect_flip").startsWith("true") && m_chatmessage[FLIP].toInt() == 1);
bool looping = ao_app->get_effect_property(fx_path, p_char, p_folder, "loop").startsWith("true");
@@ -4221,7 +4221,7 @@ void Courtroom::chat_tick()
f_char = m_chatmessage[CHAR_NAME];
f_custom_theme = ao_app->get_chat(f_char);
}
- ui_vp_chat_arrow->setTransformationMode(ao_app->get_misc_scaling(f_custom_theme));
+ ui_vp_chat_arrow->setResizeMode(ao_app->get_misc_scaling(f_custom_theme));
ui_vp_chat_arrow->loadAndPlayAnimation("chat_arrow", f_custom_theme); // Chat stopped being processed, indicate that.
QString f_message_filtered = filter_ic_text(f_message, true, -1, m_chatmessage[TEXT_COLOR].toInt());
if (Options::getInstance().customChatboxEnabled())