diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-13 09:14:58 -0500 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-14 11:44:51 +0100 |
| commit | 1d62584742f5c95ff3720ad4f50c59afc018a235 (patch) | |
| tree | 5907855f2e2e543737e671a1fb13e3618ff03c29 /render/render.h | |
| parent | 0cd9986f87c0ad678fd112e5b8fc286105599228 (diff) | |
pre-calc the sum of a picture added to an RrImage rather than calculating it every time
Diffstat (limited to 'render/render.h')
| -rw-r--r-- | render/render.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
