mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 17:09:49 +01:00
pass/surface: fixup invalid expansion by old -1 rounding param
fixes #8889
This commit is contained in:
parent
391ff29110
commit
1b06d222cf
1 changed files with 10 additions and 26 deletions
|
@ -13,32 +13,16 @@ class CSurfacePassElement : public IPassElement {
|
||||||
timespec* when = nullptr;
|
timespec* when = nullptr;
|
||||||
Vector2D pos, localPos;
|
Vector2D pos, localPos;
|
||||||
|
|
||||||
// for iters
|
|
||||||
void* data = nullptr;
|
void* data = nullptr;
|
||||||
SP<CWLSurfaceResource> surface = nullptr;
|
SP<CWLSurfaceResource> surface = nullptr;
|
||||||
SP<CTexture> texture = nullptr;
|
SP<CTexture> texture = nullptr;
|
||||||
bool mainSurface = true;
|
bool mainSurface = true;
|
||||||
double w = 0, h = 0;
|
double w = 0, h = 0;
|
||||||
|
int rounding = 0;
|
||||||
// for rounding
|
|
||||||
bool dontRound = true;
|
bool dontRound = true;
|
||||||
|
float roundingPower = 2.0F;
|
||||||
// for fade
|
|
||||||
float fadeAlpha = 1.f;
|
|
||||||
|
|
||||||
// for alpha settings
|
|
||||||
float alpha = 1.f;
|
|
||||||
|
|
||||||
// for decorations (border)
|
|
||||||
bool decorate = false;
|
bool decorate = false;
|
||||||
|
float alpha = 1.F, fadeAlpha = 1.F;
|
||||||
// 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 blur = false;
|
||||||
bool blockBlurOptimization = false;
|
bool blockBlurOptimization = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue