summaryrefslogtreecommitdiff
path: root/src/protocols/ToplevelExport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/ToplevelExport.cpp')
-rw-r--r--src/protocols/ToplevelExport.cpp6
1 files changed, 4 insertions, 2 deletions
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 <hyprutils/math/Vector2D.hpp>
+#include <hyprgraphics/egl/Egl.hpp>
+using namespace Hyprgraphics::Egl;
using namespace Screenshare;
CToplevelExportClient::CToplevelExportClient(SP<CHyprlandToplevelExportManagerV1> resource_) : m_resource(resource_) {
@@ -73,8 +75,8 @@ CToplevelExportFrame::CToplevelExportFrame(SP<CHyprlandToplevelExportFrameV1> 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)