Skip to content

Commit

Permalink
all: chase hyprland fixes (#238)
Browse files Browse the repository at this point in the history
* Fix 60c5c63

* Also update to most recent commit
  • Loading branch information
cpiber authored Nov 2, 2024
1 parent 60c5c63 commit c347d8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion borders-plus-plus/borderDeco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion hyprbars/barDeco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions hyprexpo/overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion hyprtrails/trail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Vector2D vecForBezierT(const float& t, const std::vector<Vector2D>& verts) {
return pts[0];
}

void CTrail::draw(PHLMONITOR pMonitor, float a) {
void CTrail::draw(PHLMONITOR pMonitor, const float &a) {
if (!validMapped(m_pWindow))
return;

Expand Down

0 comments on commit c347d8a

Please sign in to comment.