projects
/
mikachu
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pre-calc the sum of a picture added to an RrImage rather than calculating it every...
[mikachu/openbox.git]
/
render
/
render.h
diff --git
a/render/render.h
b/render/render.h
index
5f14508
..
6905059
100644
(file)
--- 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