freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master d4c3ac6: src/rsvg-port.c: Correct usage of `FT_


From: Werner Lemberg
Subject: [freetype2-demos] master d4c3ac6: src/rsvg-port.c: Correct usage of `FT_Bool` vs `gboolean` comparison.
Date: Sun, 16 Jul 2023 01:58:30 -0400 (EDT)

branch: master
commit d4c3ac60a5e6cba94e0f7e36008add189b216f5b
Author: Hin-Tak Leung <htl10@users.sourceforge.net>
Commit: Werner Lemberg <wl@gnu.org>

    src/rsvg-port.c: Correct usage of `FT_Bool` vs `gboolean` comparison.
    
    `TRUE` in this context is from glib headers (`glib-2.0/glib/gmacros.h`),
    imported indirectly from rsvg headers.  It should not be used for comparison
    with `FT_Bool` types.  Other usages of `TRUE/FALSE` in this file is okay.
    
    Signed-off-by: Hin-Tak Leung <htl10@users.sourceforge.net>
---
 src/rsvg-port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rsvg-port.c b/src/rsvg-port.c
index e683e68..7a8bb9a 100644
--- a/src/rsvg-port.c
+++ b/src/rsvg-port.c
@@ -415,7 +415,7 @@
     /* If a render call is to follow, just destroy the context for the */
     /* recording surface since no more drawing will be done on it.     */
     /* However, keep the surface itself for use by the render hook.    */
-    if ( cache == TRUE )
+    if ( cache )
     {
       cairo_destroy( rec_cr );
       goto CleanLibrsvg;



reply via email to

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