freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master ea4f377: [ftbench] Minor tweaks.


From: Werner Lemberg
Subject: [freetype2-demos] master ea4f377: [ftbench] Minor tweaks.
Date: Fri, 3 Jun 2022 23:28:39 -0400 (EDT)

branch: master
commit ea4f377709771e0237472a2932fa0e22ec62246f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    [ftbench] Minor tweaks.
    
    * builds/windows/msvc/ftbench.vcxproj: Do not depend on "common.c".
    * src/ftbench.c: Do not include "common.h".
    (main): Minor output optimization.
---
 builds/windows/msvc/ftbench.vcxproj |  2 --
 src/ftbench.c                       | 12 ++++--------
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/builds/windows/msvc/ftbench.vcxproj 
b/builds/windows/msvc/ftbench.vcxproj
index 517fd17..d9c6762 100644
--- a/builds/windows/msvc/ftbench.vcxproj
+++ b/builds/windows/msvc/ftbench.vcxproj
@@ -139,12 +139,10 @@
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
-    <ClCompile Include="..\..\..\src\common.c" />
     <ClCompile Include="..\..\..\src\mlgetopt.c" />
     <ClCompile Include="..\..\..\src\ftbench.c" />
   </ItemGroup>
   <ItemGroup>
-    <ClInclude Include="..\..\..\src\common.h" />
     <ClInclude Include="..\..\..\src\mlgetopt.h" />
   </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/src/ftbench.c b/src/ftbench.c
index fa01c17..641c8b8 100644
--- a/src/ftbench.c
+++ b/src/ftbench.c
@@ -40,8 +40,6 @@
 #include "mlgetopt.h"
 #endif
 
-#include "common.h"
-
 #ifdef _WIN32
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
@@ -1071,7 +1069,6 @@
     int            max_iter       = 0;
     double         max_time       = BENCH_TIME;
     int            compare_cached = 0;
-    size_t         i;
     int            j;
 
     unsigned int  versions[3] = { TT_INTERPRETER_VERSION_35,
@@ -1319,11 +1316,10 @@
     if ( get_face( &face ) )
       goto Exit;
 
-    printf( "\n"
-            "ftbench results for font `%s'\n"
-            "---------------------------",
-            filename );
-    for ( i = 0; i < strlen( filename ); i++ )
+    j = printf( "\n"
+                "ftbench results for font `%s'\n",
+                filename );
+    while ( j-- > 2 )
       putchar( '-' );
     putchar( '\n' );
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]