From 1d62584742f5c95ff3720ad4f50c59afc018a235 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 13 Feb 2008 09:14:58 -0500 Subject: pre-calc the sum of a picture added to an RrImage rather than calculating it every time --- render/render.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'render/render.h') diff --git a/render/render.h b/render/render.h index 5f145083..69050597 100644 --- a/render/render.h +++ b/render/render.h @@ -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 -- cgit v1.2.3