pre-calc the sum of a picture added to an RrImage rather than calculating it every...
[mikachu/openbox.git] / render / render.h
index 7053664..f7bc504 100644 (file)
@@ -227,6 +227,9 @@ struct _RrAppearance {
 struct _RrImagePic {
     gint width, height;
     RrPixel32 *data;
+    /* The sum of all the pixels.  This is used to compare pictures if their
+       hashes match. */
+    gint sum;
 };
 
 /*! An RrImage is a sort of meta-image.  It can contain multiple versions of