backends/virtual: Fix KWIN_WAYLAND_VIRTUAL_SCREENSHOTS
Image path is incorrectly specified in the EGL backend. Also, `%s` must be `%2`.
This commit is contained in:
parent
bd26f57e18
commit
cdda8593d8
2 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ void VirtualEglBackend::present(Output *output)
|
||||||
|
|
||||||
if (m_backend->saveFrames()) {
|
if (m_backend->saveFrames()) {
|
||||||
const std::unique_ptr<VirtualEglLayer> &layer = m_outputs[output];
|
const std::unique_ptr<VirtualEglLayer> &layer = m_outputs[output];
|
||||||
layer->texture()->toImage().save(QStringLiteral("%1/%2.png").arg(m_backend->saveFrames()).arg(QString::number(m_frameCounter++)));
|
layer->texture()->toImage().save(QStringLiteral("%1/%2-%3.png").arg(m_backend->screenshotDirPath(), output->name(), QString::number(m_frameCounter++)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ void VirtualQPainterBackend::present(Output *output)
|
||||||
static_cast<VirtualOutput *>(output)->vsyncMonitor()->arm();
|
static_cast<VirtualOutput *>(output)->vsyncMonitor()->arm();
|
||||||
|
|
||||||
if (m_backend->saveFrames()) {
|
if (m_backend->saveFrames()) {
|
||||||
m_outputs[output]->image()->save(QStringLiteral("%1/%s-%3.png").arg(m_backend->screenshotDirPath(), output->name(), QString::number(m_frameCounter++)));
|
m_outputs[output]->image()->save(QStringLiteral("%1/%2-%3.png").arg(m_backend->screenshotDirPath(), output->name(), QString::number(m_frameCounter++)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue