[Image-SIG] patch to Tk/tkImaging.c (transparency problem) [PIL 1.1.1]
Eric Pettersen
pett@cgl.ucsf.EDU
Thu, 15 Mar 2001 15:08:36 -0800
Tk/tkImaging.c does not fully initialize the structure used to control the
copying of an alpha-containing image, which leads to possibly spurious
behavior (compiler/linker-dependent). Here is a context diff:
*** tkImaging.c 2001/03/15 19:21:12 1.1
--- tkImaging.c 2001/03/15 23:02:44
***************
*** 142,147 ****
--- 142,148 ----
run.offset[0] = 0;
run.offset[1] = 1;
run.offset[2] = 2;
+ run.offset[3] = 3;
/* Copy opaque runs to photo image */
for (y = 0; y < block.height; y++) {
---
Eric Pettersen
UCSF Computer Graphics Lab
pett@cgl.ucsf.edu
http://www.cgl.ucsf.edu