summaryrefslogtreecommitdiff
path: root/tests/helpers/Format.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2026-04-05 20:37:07 +0200
committerGitHub <noreply@github.com>2026-04-05 19:37:07 +0100
commit809b9b9e78c69c53b62dfc7d5de5c20ff8fe0626 (patch)
treec54f0261aad8e01e9dc7abcfefafb056cd448ac3 /tests/helpers/Format.cpp
parent5c5ba65ad32aa59c9e769d7b2ae62ea632d773f0 (diff)
egl: move over to use hyprgraphics (#12988)
use the hyprgraphics helpers instead.
Diffstat (limited to 'tests/helpers/Format.cpp')
-rw-r--r--tests/helpers/Format.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/helpers/Format.cpp b/tests/helpers/Format.cpp
index 5c945f7d..705d13d1 100644
--- a/tests/helpers/Format.cpp
+++ b/tests/helpers/Format.cpp
@@ -4,7 +4,9 @@
#include <drm_fourcc.h>
#include <wayland-server-protocol.h>
+#include <hyprgraphics/egl/Egl.hpp>
+using namespace Hyprgraphics::Egl;
using namespace NFormatUtils;
TEST(Helpers, formatDrmToShm) {
@@ -45,8 +47,8 @@ TEST(Helpers, formatGetPixelFormatFromDRM) {
}
TEST(Helpers, formatIsFormatOpaque) {
- EXPECT_TRUE(isFormatOpaque(DRM_FORMAT_XRGB8888));
- EXPECT_FALSE(isFormatOpaque(DRM_FORMAT_ARGB8888));
+ EXPECT_TRUE(isDrmFormatOpaque(DRM_FORMAT_XRGB8888));
+ EXPECT_FALSE(isDrmFormatOpaque(DRM_FORMAT_ARGB8888));
}
TEST(Helpers, formatPixelsPerBlock) {