summaryrefslogtreecommitdiff
path: root/src/protocols/SinglePixel.cpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-03 18:54:50 +0200
committerGitHub <noreply@github.com>2025-05-03 18:54:50 +0200
commit46ac115bd19ee3aff5c816033de0b1d55a74e33f (patch)
treea731c290e62451d026c809b5bdd22c8034488208 /src/protocols/SinglePixel.cpp
parent3465efcdc1d15402ca23e7ce609905c5814fb9ee (diff)
protocols: refactor class member vars (types) (#10261)
Diffstat (limited to 'src/protocols/SinglePixel.cpp')
-rw-r--r--src/protocols/SinglePixel.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/protocols/SinglePixel.cpp b/src/protocols/SinglePixel.cpp
index c383dbb3..1104ab42 100644
--- a/src/protocols/SinglePixel.cpp
+++ b/src/protocols/SinglePixel.cpp
@@ -10,13 +10,13 @@ CSinglePixelBuffer::CSinglePixelBuffer(uint32_t id, wl_client* client, CHyprColo
g_pHyprRenderer->makeEGLCurrent();
- opaque = col_.a >= 1.F;
+ m_opaque = col_.a >= 1.F;
- texture = makeShared<CTexture>(DRM_FORMAT_ARGB8888, (uint8_t*)&color, 4, Vector2D{1, 1});
+ m_texture = makeShared<CTexture>(DRM_FORMAT_ARGB8888, (uint8_t*)&color, 4, Vector2D{1, 1});
- resource = CWLBufferResource::create(makeShared<CWlBuffer>(client, 1, id));
+ m_resource = CWLBufferResource::create(makeShared<CWlBuffer>(client, 1, id));
- success = texture->m_iTexID;
+ success = m_texture->m_iTexID;
size = {1, 1};
@@ -25,8 +25,8 @@ CSinglePixelBuffer::CSinglePixelBuffer(uint32_t id, wl_client* client, CHyprColo
}
CSinglePixelBuffer::~CSinglePixelBuffer() {
- if (resource)
- resource->sendRelease();
+ if (m_resource)
+ m_resource->sendRelease();
}
Aquamarine::eBufferCapability CSinglePixelBuffer::caps() {
@@ -58,7 +58,7 @@ void CSinglePixelBuffer::endDataPtr() {
}
bool CSinglePixelBuffer::good() {
- return resource->good();
+ return m_resource->good();
}
CSinglePixelBufferResource::CSinglePixelBufferResource(uint32_t id, wl_client* client, CHyprColor color) {
@@ -67,7 +67,7 @@ CSinglePixelBufferResource::CSinglePixelBufferResource(uint32_t id, wl_client* c
if UNLIKELY (!buffer->good())
return;
- buffer->resource->buffer = buffer;
+ buffer->m_resource->m_buffer = buffer;
listeners.bufferResourceDestroy = buffer->events.destroy.registerListener([this](std::any d) {
listeners.bufferResourceDestroy.reset();