all: chase hyprland fixes (#238)

* Fix 60c5c63

* Also update to most recent commit
This commit is contained in:
Constantin Piber 2024-11-02 23:55:20 +01:00 committed by GitHub
parent 60c5c6330b
commit c347d8ad9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -59,7 +59,7 @@ std::string CBordersPlusPlus::getDisplayName() {
return "Borders++"; return "Borders++";
} }
void CBordersPlusPlus::draw(PHLMONITOR pMonitor, float a) { void CBordersPlusPlus::draw(PHLMONITOR pMonitor, const float &a) {
if (!validMapped(m_pWindow)) if (!validMapped(m_pWindow))
return; return;

View file

@ -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)) if (m_bHidden || !validMapped(m_pWindow))
return; return;

View file

@ -237,8 +237,8 @@ void COverview::redrawID(int id, bool forcelowres) {
if (image.fb.m_vSize != monbox.size()) { if (image.fb.m_vSize != monbox.size()) {
image.fb.release(); image.fb.release();
image.fb.m_pStencilTex = nullptr;
image.fb.alloc(monbox.w, monbox.h, pMonitor->output->state->state().drmFormat); image.fb.alloc(monbox.w, monbox.h, pMonitor->output->state->state().drmFormat);
image.fb.addStencil(nullptr);
} }
CRegion fakeDamage{0, 0, INT16_MAX, INT16_MAX}; CRegion fakeDamage{0, 0, INT16_MAX, INT16_MAX};
@ -400,7 +400,7 @@ void COverview::render() {
texbox.scale(pMonitor->scale).translate(pos.value()); texbox.scale(pMonitor->scale).translate(pos.value());
texbox.round(); texbox.round();
CRegion damage{0, 0, INT16_MAX, INT16_MAX}; 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);
} }
} }
} }

View file

@ -78,7 +78,7 @@ Vector2D vecForBezierT(const float& t, const std::vector<Vector2D>& verts) {
return pts[0]; return pts[0];
} }
void CTrail::draw(PHLMONITOR pMonitor, float a) { void CTrail::draw(PHLMONITOR pMonitor, const float &a) {
if (!validMapped(m_pWindow)) if (!validMapped(m_pWindow))
return; return;