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/Screencopy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/protocols/Screencopy.cpp') diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 825939ef..75c23026 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -5,7 +5,9 @@ #include "types/Buffer.hpp" #include "../helpers/Format.hpp" #include "../helpers/time/Time.hpp" +#include +using namespace Hyprgraphics::Egl; using namespace Screenshare; CScreencopyClient::CScreencopyClient(SP resource_) : m_resource(resource_) { @@ -74,7 +76,7 @@ CScreencopyFrame::CScreencopyFrame(SP resource_, WPbufferSize(); - const auto PSHMINFO = NFormatUtils::getPixelFormatFromDRM(format); + const auto PSHMINFO = getPixelFormatFromDRM(format); if (!PSHMINFO) { LOGM(Log::ERR, "No pixel format for drm format"); @@ -82,7 +84,7 @@ CScreencopyFrame::CScreencopyFrame(SP resource_, WPsendBuffer(NFormatUtils::drmToShm(format), bufSize.x, bufSize.y, stride); if (m_resource->version() >= 3) { -- cgit v1.2.3