fix for Hyprland 0.50.0
This commit is contained in:
@@ -166,7 +166,7 @@ void CHyprEasyLabel::draw(PHLMONITOR pMonitor, float const &a) {
|
|||||||
|
|
||||||
rectData.round = m_iRounding != 0;
|
rectData.round = m_iRounding != 0;
|
||||||
rectData.roundingPower = m_iRounding ;
|
rectData.roundingPower = m_iRounding ;
|
||||||
g_pHyprRenderer->m_renderPass.add(makeShared<CRectPassElement>(rectData));
|
g_pHyprRenderer->m_renderPass.add(makeUnique<CRectPassElement>(rectData));
|
||||||
|
|
||||||
|
|
||||||
if (m_iBorderSize) {
|
if (m_iBorderSize) {
|
||||||
@@ -180,7 +180,7 @@ void CHyprEasyLabel::draw(PHLMONITOR pMonitor, float const &a) {
|
|||||||
borderData.roundingPower = m_iRounding;
|
borderData.roundingPower = m_iRounding;
|
||||||
borderData.borderSize = m_iBorderSize;
|
borderData.borderSize = m_iBorderSize;
|
||||||
borderData.a = a;
|
borderData.a = a;
|
||||||
g_pHyprRenderer->m_renderPass.add(makeShared<CBorderPassElement>(borderData));
|
g_pHyprRenderer->m_renderPass.add(makeUnique<CBorderPassElement>(borderData));
|
||||||
//g_pHyprOpenGL->renderBorder(borderBox, m_cBorderGradient, scaledRounding, m_iBorderSize * pMonitor->scale, a);
|
//g_pHyprOpenGL->renderBorder(borderBox, m_cBorderGradient, scaledRounding, m_iBorderSize * pMonitor->scale, a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -189,7 +189,7 @@ void CHyprEasyLabel::draw(PHLMONITOR pMonitor, float const &a) {
|
|||||||
motionBox.round();
|
motionBox.round();
|
||||||
texData.tex = m_tTextTex;
|
texData.tex = m_tTextTex;
|
||||||
texData.box = motionBox;
|
texData.box = motionBox;
|
||||||
g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(texData));
|
g_pHyprRenderer->m_renderPass.add(makeUnique<CTexPassElement>(texData));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user