Skip to content

Commit

Permalink
pass/surface: fixup invalid expansion by old -1 rounding param
Browse files Browse the repository at this point in the history
fixes #8889
  • Loading branch information
vaxerski committed Jan 5, 2025
1 parent 391ff29 commit 1b06d22
Showing 1 changed file with 10 additions and 26 deletions.
36 changes: 10 additions & 26 deletions src/render/pass/SurfacePassElement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b06d22

Please sign in to comment.