mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 19:05:58 +01:00
style: fix clang-format
This commit is contained in:
parent
f041d763ae
commit
8afdb8403b
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ class CAlphaModifier {
|
||||||
SP<CWpAlphaModifierSurfaceV1> resource;
|
SP<CWpAlphaModifierSurfaceV1> resource;
|
||||||
wlr_surface* pSurface = nullptr;
|
wlr_surface* pSurface = nullptr;
|
||||||
|
|
||||||
void setSurfaceAlpha(float a);
|
void setSurfaceAlpha(float a);
|
||||||
|
|
||||||
DYNLISTENER(surfaceDestroy);
|
DYNLISTENER(surfaceDestroy);
|
||||||
};
|
};
|
||||||
|
|
|
@ -100,12 +100,12 @@ static void renderSurface(struct wlr_surface* surface, int x, int y, void* data)
|
||||||
|
|
||||||
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) {
|
if (RDATA->surface && surface == RDATA->surface) {
|
||||||
windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h};
|
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
|
// 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 */) {
|
if (PSURFACE && !PSURFACE->m_bFillIgnoreSmall && PSURFACE->small() /* guarantees PWINDOW */) {
|
||||||
const auto CORRECT = PSURFACE->correctSmallVec();
|
const auto CORRECT = PSURFACE->correctSmallVec();
|
||||||
|
|
Loading…
Reference in a new issue