freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][gsoc-anurag-2022] Fix monochrome crash


From: Anurag Thakur (@AdbhutDev)
Subject: [Git][freetype/freetype][gsoc-anurag-2022] Fix monochrome crash
Date: Tue, 18 Oct 2022 20:48:20 +0000

Anurag Thakur pushed to branch gsoc-anurag-2022 at FreeType / FreeType

Commits:

  • 08e08f59
    by Anurag Thakur at 2022-10-19T02:18:04+05:30
    Fix monochrome crash
    

1 changed file:

Changes:

  • src/dense/ftdenserend.c
    ... ... @@ -75,6 +75,15 @@ take a variable named `memory`. It can only be known if you follow the macros 3
    75 75
         goto Exit;
    
    76 76
       }
    
    77 77
     
    
    78
    +      /* check mode */
    
    79
    +    if ( mode != FT_RENDER_MODE_NORMAL &&
    
    80
    +         mode != FT_RENDER_MODE_LIGHT  &&
    
    81
    +         mode != FT_RENDER_MODE_LCD    &&
    
    82
    +         mode != FT_RENDER_MODE_LCD_V  )
    
    83
    +    {
    
    84
    +      error = FT_THROW( Cannot_Render_Glyph );
    
    85
    +      goto Exit;
    
    86
    +    }
    
    78 87
     
    
    79 88
       /* deallocate the previously allocated bitmap */
    
    80 89
       if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP )
    


  • reply via email to

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