Skip to content
Snippets Groups Projects
Commit 4eae3d14 authored by David C. Lonie's avatar David C. Lonie
Browse files

Reflect API change in the optional FreeType benchmark.

parent 431f92db
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ int BenchmarkFreeTypeRendering(int , char *[])
// Clock the time needed to render the string.
startT = clock();
ftTools->RenderString(tprop.GetPointer(), str, image.GetPointer());
ftTools->RenderString(tprop.GetPointer(), str, 72, image.GetPointer());
endT = clock();
double iterSecs = static_cast<double>(endT - startT) /
static_cast<double>(CLOCKS_PER_SEC);
......@@ -95,7 +95,8 @@ int BenchmarkFreeTypeRendering(int , char *[])
// Clock the time needed to render the string.
startT = clock();
textRenderer->RenderString(tprop.GetPointer(), str, image.GetPointer());
textRenderer->RenderString(tprop.GetPointer(), str, image.GetPointer(),
NULL, 72);
endT = clock();
double iterSecs = static_cast<double>(endT - startT) /
static_cast<double>(CLOCKS_PER_SEC);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment