From 809b9b9e78c69c53b62dfc7d5de5c20ff8fe0626 Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Sun, 5 Apr 2026 20:37:07 +0200 Subject: egl: move over to use hyprgraphics (#12988) use the hyprgraphics helpers instead. --- src/protocols/ToplevelExport.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/protocols/ToplevelExport.cpp') diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp index 7b3d0c89..5536e3d7 100644 --- a/src/protocols/ToplevelExport.cpp +++ b/src/protocols/ToplevelExport.cpp @@ -6,7 +6,9 @@ #include "../render/Renderer.hpp" #include +#include +using namespace Hyprgraphics::Egl; using namespace Screenshare; CToplevelExportClient::CToplevelExportClient(SP resource_) : m_resource(resource_) { @@ -73,8 +75,8 @@ CToplevelExportFrame::CToplevelExportFrame(SP re DRMFormat format = formats.at(0); auto bufSize = m_frame->bufferSize(); - const auto PSHMINFO = NFormatUtils::getPixelFormatFromDRM(format); - const auto stride = NFormatUtils::minStride(PSHMINFO, bufSize.x); + const auto PSHMINFO = getPixelFormatFromDRM(format); + const auto stride = minStride(PSHMINFO, bufSize.x); m_resource->sendBuffer(NFormatUtils::drmToShm(format), bufSize.x, bufSize.y, stride); if LIKELY (format != DRM_FORMAT_INVALID) -- cgit v1.2.3