mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
@@ -13,7 +13,7 @@ class IPassElement {
|
||||
virtual const char* passName() = 0;
|
||||
virtual void discard();
|
||||
virtual bool undiscardable();
|
||||
virtual std::optional<CBox> boundingBox();
|
||||
virtual CRegion opaqueRegion();
|
||||
virtual std::optional<CBox> boundingBox(); // in monitor-local logical coordinates
|
||||
virtual CRegion opaqueRegion(); // in monitor-local logical coordinates
|
||||
virtual bool disableSimplification();
|
||||
};
|
||||
|
@@ -24,7 +24,7 @@ bool CRectPassElement::needsPrecomputeBlur() {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Reference in New Issue
Block a user