summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-02-05 22:45:03 (GMT)
committernijtmans <nijtmans>2010-02-05 22:45:03 (GMT)
commit454e04bbf4e61fb4a363ffcfedb08e941a17952f (patch)
tree13a98d3f366ae4c7f4dac0f3935a609ea5797c2f /generic/tkImgPhoto.h
parentcece90e032954ae35ffb33120b3a0a01cd226b25 (diff)
downloadtk-454e04bbf4e61fb4a363ffcfedb08e941a17952f.zip
tk-454e04bbf4e61fb4a363ffcfedb08e941a17952f.tar.gz
tk-454e04bbf4e61fb4a363ffcfedb08e941a17952f.tar.bz2
Make more internal tables "const"
tk*Decls.h (regenerated with new genStubs.tcl from Tcl)
Diffstat (limited to 'generic/tkImgPhoto.h')
-rw-r--r--generic/tkImgPhoto.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkImgPhoto.h b/generic/tkImgPhoto.h
index fc1a444..bcbd67f 100644
--- a/generic/tkImgPhoto.h
+++ b/generic/tkImgPhoto.h
@@ -15,7 +15,7 @@
* Department of Computer Science,
* Australian National University.
*
- * RCS: @(#) $Id: tkImgPhoto.h,v 1.1 2008/08/25 11:44:04 dkf Exp $
+ * RCS: @(#) $Id: tkImgPhoto.h,v 1.2 2010/02/05 22:45:03 nijtmans Exp $
*/
#include "tkInt.h"
@@ -223,9 +223,9 @@ struct PhotoInstance {
* Implementation of the Porter-Duff Source-Over compositing rule.
*/
-#define PD_SRC_OVER(srcColor,srcAlpha,dstColor,dstAlpha) \
+#define PD_SRC_OVER(srcColor, srcAlpha, dstColor, dstAlpha) \
(srcColor*srcAlpha/255) + dstAlpha*(255-srcAlpha)/255*dstColor/255
-#define PD_SRC_OVER_ALPHA(srcAlpha,dstAlpha) \
+#define PD_SRC_OVER_ALPHA(srcAlpha, dstAlpha) \
(srcAlpha + (255-srcAlpha)*dstAlpha/255)
#undef MIN