freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master 441ca81 1/4: * graph/x11/grx11.c (gr_x11_device


From: Alexei Podtelezhnikov
Subject: [freetype2-demos] master 441ca81 1/4: * graph/x11/grx11.c (gr_x11_device_init): Fix up 03707489a839.
Date: Thu, 25 Jun 2020 23:39:36 -0400 (EDT)

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

    * graph/x11/grx11.c (gr_x11_device_init): Fix up 03707489a839.
---
 ChangeLog         | 4 ++++
 graph/x11/grx11.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0edf582..2b5422c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-06-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       * graph/x11/grx11.c (gr_x11_device_init): Fix up 03707489a839.
+
 2020-06-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
        [graph/win32] Grayscale fixes.
diff --git a/graph/x11/grx11.c b/graph/x11/grx11.c
index 3077338..7990620 100644
--- a/graph/x11/grx11.c
+++ b/graph/x11/grx11.c
@@ -949,7 +949,7 @@ typedef  unsigned long   uint32;
       XDepth*              formats;
       XVisualInfo          templ;
       XVisualInfo*         visual;
-      int                  count, count2;
+      int                  i, count, count2;
 
 
       templ.screen = DefaultScreen( x11dev.display );
@@ -958,7 +958,7 @@ typedef  unsigned long   uint32;
       /* compare to the list of supported formats first */
       for ( pformat = gr_x11_formats; *pformat; pformat++ )
       {
-        for ( format = formats; count > 0; count--, format++ )
+        for ( format = formats, i = count; i > 0; i--, format++ )
         {
           if ( format->depth          != (*pformat)->x_depth          ||
                format->bits_per_pixel != (*pformat)->x_bits_per_pixel )



reply via email to

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