Marc Lehmann <[EMAIL PROTECTED]> writes:

> On Tue, Oct 28, 2008 at 05:18:14PM +0100, Frank Schmitt <[EMAIL PROTECTED]> 
> wrote:
>> | NET_WM_ICON CARDINAL[][2+n]/32
>> 
>> Do you have any other sources for me which contradict this?
>
> No, because it is true - but the C type corresponding to CARD32 is "long"
> - C has no CARDINAL type built-in.

You have been perfectly right. I just tried my patch on a 64-bit system
and indeed it didn't work until I changed the buffer to long. What I now
do is:

long* buffer = (long*)malloc((w*h+2)*sizeof(long)); //Buffer for X
ARGB32* asbuf=result->alt.argb32; //Buffer from AfterImage
buffer[0]=w;
buffer[1]=h;
for (unsigned int i=0; i<w*h; ++i){
  buffer[i+2]=asbuf[i];
}

which works under both 32 and 64 bit. However I'm not sure if this works
on big-endian 64 bit systems as well and I've got no such system to test
it.

-- 
Have you ever considered how much text can fit in eighty columns?  Given that a
signature typically contains up to four lines of text, this space allows you to
attach a tremendous amount of valuable information to your messages.  Seize the
opportunity and don't waste your signature on bullshit that nobody cares about.

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to