mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-01-08 05:19:48 +01:00
expo: fixup workspace rendering
This commit is contained in:
parent
616e7ef0ac
commit
a41bcdccac
1 changed files with 7 additions and 4 deletions
|
@ -95,9 +95,12 @@ COverview::COverview(PHLWORKSPACE startedOn_, bool swipe_) : startedOn(startedOn
|
||||||
timespec now;
|
timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
|
|
||||||
Vector2D tileSize = pMonitor->vecSize / SIDE_LENGTH;
|
Vector2D tileSize = pMonitor->vecSize / SIDE_LENGTH;
|
||||||
Vector2D tileRenderSize = (pMonitor->vecSize - Vector2D{GAP_WIDTH * pMonitor->scale, GAP_WIDTH * pMonitor->scale} * (SIDE_LENGTH - 1)) / SIDE_LENGTH;
|
Vector2D tileRenderSize = (pMonitor->vecSize - Vector2D{GAP_WIDTH * pMonitor->scale, GAP_WIDTH * pMonitor->scale} * (SIDE_LENGTH - 1)) / SIDE_LENGTH;
|
||||||
CBox monbox{0, 0, tileSize.x * 2, tileSize.y * 2};
|
CBox monbox{0, 0, tileSize.x * 2, tileSize.y * 2};
|
||||||
|
|
||||||
|
if (!ENABLE_LOWRES)
|
||||||
|
monbox = {{0, 0}, pMonitor->vecPixelSize};
|
||||||
|
|
||||||
int currentid = 0;
|
int currentid = 0;
|
||||||
|
|
||||||
|
@ -403,7 +406,7 @@ void COverview::fullRender() {
|
||||||
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.getTexture(), &texbox, 1.0, damage);
|
g_pHyprOpenGL->renderTextureInternalWithDamage(images[x + y * SIDE_LENGTH].fb.getTexture(), &texbox, 1.0, damage, 0, false, false, false, false, nullptr, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue