shithub: freetype+ttf2subf

Download patch

ref: 1eb9a43aa14e02b56d981bae334e6e24c63298f7
parent: 28ffa1f5d6545881108606b0e0e451ddd81217d4
author: David Turner <[email protected]>
date: Thu Dec 14 16:24:27 EST 2000

fixed small bug (no need to test target pixmap in direct rendering mode)

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -3260,12 +3260,12 @@
     if ( outline->n_points != outline->contours[outline->n_contours - 1] + 1 )
       return Raster_Err_Invalid;
 
-    if ( !target_map || !target_map->buffer )
-      return Raster_Err_Invalid;
-
     /* this version of the raster does not support direct rendering, sorry */
     if ( params->flags & ft_raster_flag_direct )
       return Raster_Err_Unsupported;
+
+    if ( !target_map || !target_map->buffer )
+      return Raster_Err_Invalid;
 
     ras.outline  = *outline;
     ras.target   = *target_map;