summaryrefslogtreecommitdiff
path: root/libreofficekit/qa/tilebench/tilebench.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libreofficekit/qa/tilebench/tilebench.cxx')
-rw-r--r--libreofficekit/qa/tilebench/tilebench.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/libreofficekit/qa/tilebench/tilebench.cxx b/libreofficekit/qa/tilebench/tilebench.cxx
index ed3d57d05b3f..3c62e2e36838 100644
--- a/libreofficekit/qa/tilebench/tilebench.cxx
+++ b/libreofficekit/qa/tilebench/tilebench.cxx
@@ -104,12 +104,6 @@ int main( int argc, char* argv[] )
return 1;
}
- // Use realistic dimensions, similar to the Online client.
- long nTilePixelWidth = 512;
- long nTilePixelHeight = 512;
- long nTileTwipWidth = 3840;
- long nTileTwipHeight = 3840;
-
aTimes.emplace_back("initialization");
// coverity[tainted_string] - build time test tool
Office *pOffice = lok_cpp_init(argv[1]);
@@ -153,6 +147,12 @@ int main( int argc, char* argv[] )
}
aTimes.emplace_back();
+ // Use realistic dimensions, similar to the Online client.
+ long nTilePixelWidth = 512;
+ long nTilePixelHeight = 512;
+ long nTileTwipWidth = 3840;
+ long nTileTwipHeight = 3840;
+
// Estimate the maximum tiles based on the number of parts requested, if Writer.
if (pDocument->getDocumentType() == LOK_DOCTYPE_TEXT)
max_tiles = static_cast<int>(ceil(max_parts * 16128. / nTilePixelHeight)) * ceil(static_cast<double>(nWidth) / nTilePixelWidth);