From daa1cf940271211f06e85e1092d63a3c7ff41a0e Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Wed, 11 Dec 2019 18:16:13 +0100 Subject: [PATCH] [platforms/drm] Align plane type enum with kernel This is just a code cosmetic change to have the same values internally like the kernel for the type enum. In the logic there should not be a difference since the enum values are mapped at runtime. --- plugins/platforms/drm/drm_object_plane.cpp | 4 ++-- plugins/platforms/drm/drm_object_plane.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/platforms/drm/drm_object_plane.cpp b/plugins/platforms/drm/drm_object_plane.cpp index 3fdc9dc351..1dd7a7e243 100644 --- a/plugins/platforms/drm/drm_object_plane.cpp +++ b/plugins/platforms/drm/drm_object_plane.cpp @@ -83,9 +83,9 @@ bool DrmPlane::initProps() }); QVector typeNames = { - QByteArrayLiteral("Primary"), - QByteArrayLiteral("Cursor"), QByteArrayLiteral("Overlay"), + QByteArrayLiteral("Primary"), + QByteArrayLiteral("Cursor") }; const QVector rotationNames{ diff --git a/plugins/platforms/drm/drm_object_plane.h b/plugins/platforms/drm/drm_object_plane.h index d23b21dede..b0ad9f732e 100644 --- a/plugins/platforms/drm/drm_object_plane.h +++ b/plugins/platforms/drm/drm_object_plane.h @@ -52,9 +52,9 @@ public: }; enum class TypeIndex { - Primary = 0, + Overlay = 0, + Primary, Cursor, - Overlay, Count };