freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master 40ff6d7: * src/ftcommon.c (FTDemo_Draw_Header):


From: Werner Lemberg
Subject: [freetype2-demos] master 40ff6d7: * src/ftcommon.c (FTDemo_Draw_Header): Minor.
Date: Wed, 11 Jan 2023 10:00:06 -0500 (EST)

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

    * src/ftcommon.c (FTDemo_Draw_Header): Minor.
---
 src/ftcommon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ftcommon.c b/src/ftcommon.c
index 19fa446..76f2774 100644
--- a/src/ftcommon.c
+++ b/src/ftcommon.c
@@ -1216,7 +1216,7 @@
     if ( abs( ptsize * res / 72 - ppem ) > 32 ||
          error_code                           )
     {
-      x = strbuf_len( buf );
+      x = 8 * strbuf_len( buf ) + 16;
       strbuf_reset( buf );
 
       switch ( error_code )
@@ -1233,7 +1233,7 @@
       default:
         strbuf_format( buf, "Error 0x%04x", (FT_UShort)error_code );
       }
-      grWriteCellString( display->bitmap, 8 * x + 16, line * HEADER_HEIGHT,
+      grWriteCellString( display->bitmap, x, line * HEADER_HEIGHT,
                          strbuf_value( buf ), display->warn_color );
     }
 



reply via email to

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