diff options
| author | vaxerski <vaxry@vaxry.net> | 2025-01-05 20:35:24 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2025-01-05 20:35:24 +0100 |
| commit | 1b06d222cf5abfc9802f7787315a8190f011d43e (patch) | |
| tree | 594505dcfb5d9d6fc02699507cfd478cef2f65aa /src/render | |
| parent | 391ff29110e3fb9711b98e92cee44182dda2e2ba (diff) | |
pass/surface: fixup invalid expansion by old -1 rounding param
fixes #8889
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/pass/SurfacePassElement.hpp | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/src/render/pass/SurfacePassElement.hpp b/src/render/pass/SurfacePassElement.hpp index 14d8ef14..12387367 100644 --- a/src/render/pass/SurfacePassElement.hpp +++ b/src/render/pass/SurfacePassElement.hpp @@ -9,38 +9,22 @@ class CSyncTimeline; class CSurfacePassElement : public IPassElement { public: struct SRenderData { - PHLMONITORREF pMonitor; - timespec* when = nullptr; - Vector2D pos, localPos; + PHLMONITORREF pMonitor; + timespec* when = nullptr; + Vector2D pos, localPos; - // for iters void* data = nullptr; SP<CWLSurfaceResource> surface = nullptr; SP<CTexture> texture = nullptr; bool mainSurface = true; double w = 0, h = 0; - - // for rounding - bool dontRound = true; - - // for fade - float fadeAlpha = 1.f; - - // for alpha settings - float alpha = 1.f; - - // for decorations (border) - bool decorate = false; - - // for custom round values - int rounding = -1; // -1 means not set - - // for custom rounding powers - float roundingPower = 2.0f; - - // for blurring - bool blur = false; - bool blockBlurOptimization = false; + int rounding = 0; + bool dontRound = true; + float roundingPower = 2.0F; + bool decorate = false; + float alpha = 1.F, fadeAlpha = 1.F; + bool blur = false; + bool blockBlurOptimization = false; // only for windows, not popups bool squishOversized = true; |
