From: Zack Rusin Date: Tue, 12 Apr 2011 01:30:04 +0000 (-0400) Subject: Respect the double buffered option when looking up the state. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=16ae036e759e5177cf9d69dbf101cde2828ee432;p=apitrace Respect the double buffered option when looking up the state. --- diff --git a/gui/retracer.cpp b/gui/retracer.cpp index 8f35087..f28f479 100644 --- a/gui/retracer.cpp +++ b/gui/retracer.cpp @@ -117,6 +117,11 @@ void Retracer::run() void RetraceProcess::start() { QStringList arguments; + + if (m_doubleBuffered) { + arguments << QLatin1String("-db"); + } + if (m_captureState) { arguments << QLatin1String("-D"); arguments << QString::number(m_captureCall); @@ -124,9 +129,6 @@ void RetraceProcess::start() if (m_benchmarking) { arguments << QLatin1String("-b"); } - if (m_doubleBuffered) { - arguments << QLatin1String("-db"); - } } arguments << m_fileName;