[gl2ps] Bug on 64 bits os with gl2psDrawPixels

Calixte.Denizet at ac-rennes.fr Calixte.Denizet at ac-rennes.fr
Sun Oct 11 19:46:24 CEST 2009


Hi,

i) In the function gl2psPrintPdfPixmapStreamData, the shift (for rgba components) is equal to 24 which is good with sizeof(unsigned long)=4 but not on 64 arch, that generates a bug with the function writeBigEndian which considers only sizeof(unsigned long). 
This bug can be fixed in setting the shift to (sizeof(unsigned long)-1)*8.

ii) Is it possible to scale an image to insert ? I'd like to increase the resolution of the image in doubling his dimensions and in scaling by 0.5 when inserted in pdf.

Calixte