From c347d8ad9b80370d573e5a01b2e8bf10e6d0dbe5 Mon Sep 17 00:00:00 2001 From: Constantin Piber <59023762+cpiber@users.noreply.github.com> Date: Sat, 2 Nov 2024 23:55:20 +0100 Subject: [PATCH] all: chase hyprland fixes (#238) * Fix 60c5c63 * Also update to most recent commit --- borders-plus-plus/borderDeco.cpp | 2 +- hyprbars/barDeco.cpp | 2 +- hyprexpo/overview.cpp | 4 ++-- hyprtrails/trail.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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;