[gl2ps] Bug on 64 bits os with gl2psDrawPixels
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Mon Oct 12 00:08:50 CEST 2009
Calixte.Denizet at ac-rennes.fr wrote:
> 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.
>
Hi Calixte - Thanks for the bug report: I applied your patch in the CVS
version.
> 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.
>
No... That could be interesting though.
> Calixte
>
> _______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org
> http://www.geuz.org/mailman/listinfo/gl2ps
>
>
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine