parent
d41135d07c
commit
344e32d71b
2 changed files with 3 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue