utils: drop the prefix param from drmFormatName
This commit is contained in:
parent
d59451adcf
commit
c310ba782a
2 changed files with 3 additions and 3 deletions
|
@ -111,10 +111,10 @@ std::optional<FormatInfo> FormatInfo::get(uint32_t drmFormat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString FormatInfo::drmFormatName(const QString &prefix, uint32_t format)
|
QString FormatInfo::drmFormatName(uint32_t format)
|
||||||
{
|
{
|
||||||
return QString::asprintf(
|
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 & 0xff).toLatin1(),
|
||||||
QLatin1Char((format >> 8) & 0xff).toLatin1(),
|
QLatin1Char((format >> 8) & 0xff).toLatin1(),
|
||||||
QLatin1Char((format >> 16) & 0xff).toLatin1(),
|
QLatin1Char((format >> 16) & 0xff).toLatin1(),
|
||||||
|
|
|
@ -53,6 +53,6 @@ struct KWIN_EXPORT FormatInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::optional<FormatInfo> get(uint32_t drmFormat);
|
static std::optional<FormatInfo> get(uint32_t drmFormat);
|
||||||
static QString drmFormatName(const QString &prefix, uint32_t format);
|
static QString drmFormatName(uint32_t format);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue