mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -07:00
@@ -13,7 +13,7 @@ class IPassElement {
|
|||||||
virtual const char* passName() = 0;
|
virtual const char* passName() = 0;
|
||||||
virtual void discard();
|
virtual void discard();
|
||||||
virtual bool undiscardable();
|
virtual bool undiscardable();
|
||||||
virtual std::optional<CBox> boundingBox();
|
virtual std::optional<CBox> boundingBox(); // in monitor-local logical coordinates
|
||||||
virtual CRegion opaqueRegion();
|
virtual CRegion opaqueRegion(); // in monitor-local logical coordinates
|
||||||
virtual bool disableSimplification();
|
virtual bool disableSimplification();
|
||||||
};
|
};
|
||||||
|
@@ -24,7 +24,7 @@ bool CRectPassElement::needsPrecomputeBlur() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::optional<CBox> CRectPassElement::boundingBox() {
|
std::optional<CBox> CRectPassElement::boundingBox() {
|
||||||
return data.box;
|
return data.box.copy().scale(1.F / g_pHyprOpenGL->m_RenderData.pMonitor->scale).round();
|
||||||
}
|
}
|
||||||
|
|
||||||
CRegion CRectPassElement::opaqueRegion() {
|
CRegion CRectPassElement::opaqueRegion() {
|
||||||
|
Reference in New Issue
Block a user