Require destination images to be bitmaps

Submitted by Ben Avison on April 22, 2015, 11:53 p.m.

Details

Message ID 1429746841-25607-1-git-send-email-bavison@riscosopen.org
State New
Headers show

Commit Message

Ben Avison April 22, 2015, 11:53 p.m.
Perhaps this was considered too obvious to check, but it's possible to
add a test without imposing any run-time overhead by adding
FAST_PATH_BITS_IMAGE to FAST_PATH_STD_DEST_FLAGS.
---
 pixman/pixman-private.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index fdc966a..5e4616f 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -731,7 +731,8 @@  _pixman_iter_init_bits_stride (pixman_iter_t *iter, const pixman_iter_info_t *in
 #define FAST_PATH_STD_DEST_FLAGS					\
     (FAST_PATH_NO_ACCESSORS		|				\
      FAST_PATH_NO_ALPHA_MAP		|				\
-     FAST_PATH_NARROW_FORMAT)
+     FAST_PATH_NARROW_FORMAT            |                               \
+     FAST_PATH_BITS_IMAGE)
 
 #define SOURCE_FLAGS(format)						\
     (FAST_PATH_STANDARD_FLAGS |						\