test/automated/common/common.h
changeset 3477 2c07bb579922
parent 3441 5271ce790fed
child 7051 cf773d8091c7
--- a/test/automated/common/common.h	Sat Nov 21 07:46:12 2009 +0000
+++ b/test/automated/common/common.h	Sat Nov 21 07:59:19 2009 +0000
@@ -25,6 +25,8 @@
    const unsigned char pixel_data[];
 } SurfaceImage_t;
 
+#define ALLOWABLE_ERROR_OPAQUE	0
+#define ALLOWABLE_ERROR_BLENDED	64
 
 /**
  * @brief Compares a surface and a surface image for equality.
@@ -33,7 +35,7 @@
  *    @param img Image to compare against.
  *    @return 0 if they are the same, -1 on error and positive if different.
  */
-int surface_compare( SDL_Surface *sur, const SurfaceImage_t *img );
+int surface_compare( SDL_Surface *sur, const SurfaceImage_t *img, int allowable_error );
 
 
 #endif /* COMMON_H */