diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-05-02 16:29:04 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-05-02 16:29:15 +0100 |
| commit | 77ecf0950685c7872b3aa8c2e63ef4147b0bb685 (patch) | |
| tree | 9cb9af16998f5dd150f8b5a512236d187db2a8b0 /src/desktop | |
| parent | f1ac1847ffaccad9d4faf2e47066202d7ab915d1 (diff) | |
internal: fix name confusion in SAlphaValue
fixes #10251
Diffstat (limited to 'src/desktop')
| -rw-r--r-- | src/desktop/Window.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp index cc62dd3b..449c9c60 100644 --- a/src/desktop/Window.hpp +++ b/src/desktop/Window.hpp @@ -68,13 +68,13 @@ class IWindowTransformer; struct SAlphaValue { float alpha; - bool override; + bool overridden; - float applyAlpha(float alpha) const { - if (override) + float applyAlpha(float a) const { + if (overridden) return alpha; else - return alpha * alpha; + return alpha * a; }; }; |
