freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] src/rsvg-port.c: Correct usage of


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype-demos][master] src/rsvg-port.c: Correct usage of `FT_Bool` vs `gboolean` comparison.
Date: Sun, 16 Jul 2023 05:58:19 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • d4c3ac60
    by Hin-Tak Leung at 2023-07-16T07:56:59+02:00
    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>
    

1 changed file:

Changes:

  • src/rsvg-port.c
    ... ... @@ -415,7 +415,7 @@
    415 415
         /* If a render call is to follow, just destroy the context for the */
    
    416 416
         /* recording surface since no more drawing will be done on it.     */
    
    417 417
         /* However, keep the surface itself for use by the render hook.    */
    
    418
    -    if ( cache == TRUE )
    
    418
    +    if ( cache )
    
    419 419
         {
    
    420 420
           cairo_destroy( rec_cr );
    
    421 421
           goto CleanLibrsvg;
    


  • reply via email to

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