diff --git a/borders-plus-plus/borderDeco.cpp b/borders-plus-plus/borderDeco.cpp index dc95a2c..8e35b53 100644 --- a/borders-plus-plus/borderDeco.cpp +++ b/borders-plus-plus/borderDeco.cpp @@ -59,7 +59,7 @@ std::string CBordersPlusPlus::getDisplayName() { return "Borders++"; } -void CBordersPlusPlus::draw(PHLMONITOR pMonitor, float a) { +void CBordersPlusPlus::draw(PHLMONITOR pMonitor, const float &a) { if (!validMapped(m_pWindow)) return; diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index cd0aaa3..ce44ba5 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -383,7 +383,7 @@ void CHyprBar::renderBarButtonsText(CBox* barBox, const float scale, const float } } -void CHyprBar::draw(PHLMONITOR pMonitor, float a) { +void CHyprBar::draw(PHLMONITOR pMonitor, const float &a) { if (m_bHidden || !validMapped(m_pWindow)) return; diff --git a/hyprexpo/overview.cpp b/hyprexpo/overview.cpp index 1cc63e7..447eef2 100644 --- a/hyprexpo/overview.cpp +++ b/hyprexpo/overview.cpp @@ -237,8 +237,8 @@ void COverview::redrawID(int id, bool forcelowres) { if (image.fb.m_vSize != monbox.size()) { image.fb.release(); - image.fb.m_pStencilTex = nullptr; image.fb.alloc(monbox.w, monbox.h, pMonitor->output->state->state().drmFormat); + image.fb.addStencil(nullptr); } CRegion fakeDamage{0, 0, INT16_MAX, INT16_MAX}; @@ -400,7 +400,7 @@ void COverview::render() { texbox.scale(pMonitor->scale).translate(pos.value()); texbox.round(); CRegion damage{0, 0, INT16_MAX, INT16_MAX}; - g_pHyprOpenGL->renderTextureInternalWithDamage(images[x + y * SIDE_LENGTH].fb.m_cTex, &texbox, 1.0, &damage); + g_pHyprOpenGL->renderTextureInternalWithDamage(images[x + y * SIDE_LENGTH].fb.getTexture(), &texbox, 1.0, &damage); } } } diff --git a/hyprtrails/trail.cpp b/hyprtrails/trail.cpp index bb4afd0..c636e37 100644 --- a/hyprtrails/trail.cpp +++ b/hyprtrails/trail.cpp @@ -78,7 +78,7 @@ Vector2D vecForBezierT(const float& t, const std::vector& verts) { return pts[0]; } -void CTrail::draw(PHLMONITOR pMonitor, float a) { +void CTrail::draw(PHLMONITOR pMonitor, const float &a) { if (!validMapped(m_pWindow)) return;