diff --git a/src/utils/drm_format_helper.cpp b/src/utils/drm_format_helper.cpp index a251a28ff7..e78f7a107d 100644 --- a/src/utils/drm_format_helper.cpp +++ b/src/utils/drm_format_helper.cpp @@ -111,10 +111,10 @@ std::optional FormatInfo::get(uint32_t drmFormat) } } -QString FormatInfo::drmFormatName(const QString &prefix, uint32_t format) +QString FormatInfo::drmFormatName(uint32_t format) { return QString::asprintf( - "%s%c%c%c%c %s-endian (0x%08x)", prefix.toUtf8().constData(), + "%c%c%c%c %s-endian (0x%08x)", QLatin1Char(format & 0xff).toLatin1(), QLatin1Char((format >> 8) & 0xff).toLatin1(), QLatin1Char((format >> 16) & 0xff).toLatin1(), diff --git a/src/utils/drm_format_helper.h b/src/utils/drm_format_helper.h index 56c50648a2..d68893609e 100644 --- a/src/utils/drm_format_helper.h +++ b/src/utils/drm_format_helper.h @@ -53,6 +53,6 @@ struct KWIN_EXPORT FormatInfo } static std::optional get(uint32_t drmFormat); - static QString drmFormatName(const QString &prefix, uint32_t format); + static QString drmFormatName(uint32_t format); }; }