summaryrefslogtreecommitdiff
blob: a90175194eb441b10bb5ff213f788df07b9f70c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- c/tkImageLoad.c	2009-08-14 21:10:19.000000000 +0200
+++ c/tkImageLoad.c.new	2009-08-14 21:10:55.000000000 +0200
@@ -19,6 +19,7 @@
 //#define BLOCKED 1
 //#define UNBLOCKED 1
 #define IN_BLOCK_FLIP 1
+#define USE_COMPOSITELESS_PHOTO_PUT_BLOCK
 
 /* *********************************************************************/
 
--- c/tkImageLoad.c	2009-08-14 21:13:29.000000000 +0200
+++ c/tkImageLoad.c.new	2009-08-14 21:14:59.000000000 +0200
@@ -272,9 +272,11 @@
   }
   /* put the photo block into the image */
 #ifdef __alpha
-  Tk_PhotoPutBlock(dp, &db, 0, 0, width, height);
+  Tk_PhotoPutBlock(dp, &db, 0, 0, width, height,
+  TK_PHOTO_COMPOSITE_OVERLAY);
 #else
-  Tk_PhotoPutBlock(dp, &db, 0, 0, width, height, TK_PHOTO_COMPOSITE_SET);
+  Tk_PhotoPutBlock(dp, &db, 0, 0, width, height, TK_PHOTO_COMPOSITE_SET,
+  TK_PHOTO_COMPOSITE_OVERLAY);
 #endif
 
   /* Free the photo block's memory now it is finished with */
@@ -417,9 +419,11 @@
 
   /* put the photo block back into the image */
 #ifdef __alpha
- Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height);
+ Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height,
+ TK_PHOTO_COMPOSITE_OVERLAY);
 #else
- Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height,TK_PHOTO_COMPOSITE_SET);
+ Tk_PhotoPutBlock(photo, &block, 0, 0, block.width, block.height,TK_PHOTO_COMPOSITE_SET,
+ TK_PHOTO_COMPOSITE_OVERLAY);
 #endif
   /* Free the photo block's memory now it is finished with */
   if (block.pixelPtr) {
--- c/tkImageLoad.c	2009-08-14 21:15:06.000000000 +0200
+++ c/tkImageLoad.c.new	2009-08-14 21:16:53.000000000 +0200
@@ -9,6 +9,7 @@
 \************************************************************************/
 
 #include <stdio.h>
+#include <string.h>
 #include <tcl.h>
 #include <tk.h>
 #include <assert.h>