freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master 1f2f740: * graph/gblblit.c (grBlitGlyphToSurfac


From: Werner Lemberg
Subject: [freetype2-demos] master 1f2f740: * graph/gblblit.c (grBlitGlyphToSurface): Remove redundant check.
Date: Wed, 17 Aug 2022 14:41:08 -0400 (EDT)

branch: master
commit 1f2f74026b30f91e8475e9e22d1ffcf53cf8df44
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * graph/gblblit.c (grBlitGlyphToSurface): Remove redundant check.
    
    The rare empty glyphs will be caught later in `gblender_blit_init`.
---
 graph/gblblit.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/graph/gblblit.c b/graph/gblblit.c
index 34724ad..c513d1c 100644
--- a/graph/gblblit.c
+++ b/graph/gblblit.c
@@ -434,12 +434,6 @@ grBlitGlyphToSurface( grSurface*  surface,
     return -1;
   }
 
-  if ( !glyph->rows || !glyph->width )
-  {
-    /* nothing to do */
-    return 0;
-  }
-
   switch ( gblender_blit_init( gblit, x, y, surface, glyph ) )
   {
   case -1: /* nothing to do */



reply via email to

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