Commit 1eb9a43aa14e02b56d981bae334e6e24c63298f7

David Turner 2000-12-14T21:24:27

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 41b4d7f..92e8b5b 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -3260,13 +3260,13 @@
     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;