diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-21 21:29:37 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-21 21:29:37 +0100 |
| commit | 8afdb8403bf71daf7e25bffbbdd87e0e3e61913c (patch) | |
| tree | 53d79684d4580d712c3f650cfda35a54871a891f /src | |
| parent | f041d763ae1d5ec58682e3ff1fe3159ba9c95a49 (diff) | |
style: fix clang-format
Diffstat (limited to 'src')
| -rw-r--r-- | src/protocols/AlphaModifier.hpp | 2 | ||||
| -rw-r--r-- | src/render/Renderer.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/protocols/AlphaModifier.hpp b/src/protocols/AlphaModifier.hpp index 292c2e14..457d1b4c 100644 --- a/src/protocols/AlphaModifier.hpp +++ b/src/protocols/AlphaModifier.hpp @@ -19,7 +19,7 @@ class CAlphaModifier { SP<CWpAlphaModifierSurfaceV1> resource; wlr_surface* pSurface = nullptr; - void setSurfaceAlpha(float a); + void setSurfaceAlpha(float a); DYNLISTENER(surfaceDestroy); }; diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 957d3263..f183bf44 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -98,14 +98,14 @@ static void renderSurface(struct wlr_surface* surface, int x, int y, void* data) auto* const PSURFACE = CWLSurface::surfaceFromWlr(surface); - const float ALPHA = RDATA->alpha * RDATA->fadeAlpha * (PSURFACE ? PSURFACE->m_pAlphaModifier : 1.F); + const float ALPHA = RDATA->alpha * RDATA->fadeAlpha * (PSURFACE ? PSURFACE->m_pAlphaModifier : 1.F); - CBox windowBox; + CBox windowBox; if (RDATA->surface && surface == RDATA->surface) { windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h}; // however, if surface buffer w / h < box, we need to adjust them - const auto PWINDOW = PSURFACE ? PSURFACE->getWindow() : nullptr; + const auto PWINDOW = PSURFACE ? PSURFACE->getWindow() : nullptr; if (PSURFACE && !PSURFACE->m_bFillIgnoreSmall && PSURFACE->small() /* guarantees PWINDOW */) { const auto CORRECT = PSURFACE->correctSmallVec(); |
