From ccb8723549353d7ca934587c30527d403885389a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Sat, 1 Feb 2025 17:29:59 +0100 Subject: [PATCH] editor sound window wave graph fix --- Editor/SoundWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Editor/SoundWindow.cpp b/Editor/SoundWindow.cpp index 4d39af784..9ae48cdd6 100644 --- a/Editor/SoundWindow.cpp +++ b/Editor/SoundWindow.cpp @@ -252,7 +252,7 @@ void SoundWindow::Create(EditorComponent* _editor) reverbComboBox.SetMaxVisibleItemCount(6); AddWidget(&reverbComboBox); - waveGraph.SetSize(XMFLOAT2(100, 50)); + waveGraph.SetSize(XMFLOAT2(100, 100)); AddWidget(&waveGraph); beginInput.Create(""); @@ -412,8 +412,8 @@ void WaveGraph::Render(const wi::Canvas& canvas, wi::graphics::CommandList cmd) MiscCB cb; cb.g_xColor = XMFLOAT4(1, 1, 1, 1); XMStoreFloat4x4(&cb.g_xTransform, - XMMatrixScaling(GetSize().x, GetSize().y, 1) * - XMMatrixTranslation(GetPos().x, GetPos().y + GetSize().y, 0)* + XMMatrixScaling(GetSize().x, GetSize().y * 0.5f, 1) * + XMMatrixTranslation(GetPos().x, GetPos().y + GetSize().y * 0.5f, 0)* canvas.GetProjection() ); device->BindDynamicConstantBuffer(cb, CB_GETBINDSLOT(MiscCB), cmd);