Commit 40ae294a authored by Martin Flöser's avatar Martin Flöser
Browse files

[tools/generate] Wrap wl_fixed request args in wl_fixed_from_double

We pass a qreal to the wl_fixed and for that need to wrap it in
parent ccdcb436
......@@ -1304,7 +1304,11 @@ void Generator::generateClientCppRequests(const Interface &interface)
requestArguments.append(QStringLiteral(", *%1").arg(toCamelCase(;
} else {
arguments.append(QStringLiteral("%1 %2").arg(a.typeAsQt()).arg(toCamelCase(;
requestArguments.append(QStringLiteral(", %1").arg(toCamelCase(;
QString arg = toCamelCase(;
if (a.type() == Argument::Type::Fixed) {
arg = QStringLiteral("wl_fixed_from_double(%1)").arg(arg);
requestArguments.append(QStringLiteral(", %1").arg(arg));
if (factored.isEmpty()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment