diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2026-04-05 20:37:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-05 19:37:07 +0100 |
| commit | 809b9b9e78c69c53b62dfc7d5de5c20ff8fe0626 (patch) | |
| tree | c54f0261aad8e01e9dc7abcfefafb056cd448ac3 /src/protocols/Screencopy.cpp | |
| parent | 5c5ba65ad32aa59c9e769d7b2ae62ea632d773f0 (diff) | |
egl: move over to use hyprgraphics (#12988)
use the hyprgraphics helpers instead.
Diffstat (limited to 'src/protocols/Screencopy.cpp')
| -rw-r--r-- | src/protocols/Screencopy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <hyprgraphics/egl/Egl.hpp> +using namespace Hyprgraphics::Egl; using namespace Screenshare; CScreencopyClient::CScreencopyClient(SP<CZwlrScreencopyManagerV1> resource_) : m_resource(resource_) { @@ -74,7 +76,7 @@ CScreencopyFrame::CScreencopyFrame(SP<CZwlrScreencopyFrameV1> resource_, WP<CScr DRMFormat format = formats.at(0); auto bufSize = m_frame->bufferSize(); - 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<CZwlrScreencopyFrameV1> resource_, WP<CScr return; } - const auto stride = NFormatUtils::minStride(PSHMINFO, bufSize.x); + const auto stride = minStride(PSHMINFO, bufSize.x); m_resource->sendBuffer(NFormatUtils::drmToShm(format), bufSize.x, bufSize.y, stride); if (m_resource->version() >= 3) { |
