[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.
This commit is contained in:
Roman Gilg 2019-12-11 18:16:13 +01:00
parent cec4e57b52
commit daa1cf9402
2 changed files with 4 additions and 4 deletions

View file

@ -83,9 +83,9 @@ bool DrmPlane::initProps()
});
QVector<QByteArray> typeNames = {
QByteArrayLiteral("Primary"),
QByteArrayLiteral("Cursor"),
QByteArrayLiteral("Overlay"),
QByteArrayLiteral("Primary"),
QByteArrayLiteral("Cursor")
};
const QVector<QByteArray> rotationNames{

View file

@ -52,9 +52,9 @@ public:
};
enum class TypeIndex {
Primary = 0,
Overlay = 0,
Primary,
Cursor,
Overlay,
Count
};