From 0a0161ee6244890af440a2ba8cb2515ae2addea6 Mon Sep 17 00:00:00 2001 From: Matias Date: Thu, 17 Jul 2025 16:03:43 +0200 Subject: [PATCH] fix: attempt to preserve window alpha a bit better, tho it has artifacts --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6a6077d..abebd36 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -174,7 +174,7 @@ void hkRenderWindow( pWindow->m_floatingOffset -= Vector2D {windowBox.x, windowBox.y}; // HACK: otherwise renderWindow will set an opaque region at top-left - pWindow->m_activeInactiveAlpha->setValueAndWarp(0.999f); + pWindow->m_alpha->setValueAndWarp(pWindow->m_alpha->goal() - 0.001f); pRenderer->m_renderPass.add(makeUnique(&windowFB)); } @@ -194,8 +194,8 @@ void hkRenderWindow( if (shouldWobble) { pWindow->m_floatingOffset += Vector2D {windowBox.x, windowBox.y}; - // FIXME: restore full opacity, which is uh wrong - pWindow->m_activeInactiveAlpha->setValueAndWarp(1.f); + // HACK: this might interfere with anims, but it's all I got + pWindow->m_alpha->setValueAndWarp(pWindow->m_alpha->goal() + 0.001f); pRenderer->m_renderPass.add( makeUnique(pOldFramebuffer, pWindow)