[Mono-devel-list] making libgdiplus and System.Drawing 64 bit clean

Zoltan Varga vargaz at gmail.com
Tue Dec 28 06:11:45 EST 2004


                                                   Hi,

On Tue, 28 Dec 2004 03:56:27 -0700, Peter Dennis Bartok
<peter at novonyx.com> wrote:
> Zoltan,
> 
> Thanks for all the work you put into this.
> 
> Out of curiosity, does the new IntPtr(xxx.ToInt64..) carry a big performance
> impact?
> 

  I don't think so. It involves the creation of a new object, but the
old code contained an
(IntPtr) cast, which did the same.

           Zoltan

> Cheers,
>   Peter
> 
> 
> -----Original Message-----
> From: "Zoltan Varga" <vargaz at gmail.com>
> To: "Mono devel list" <mono-devel-list at lists.ximian.com>
> Date: 28 December, 2004 02:49
> Subject: [Mono-devel-list] making libgdiplus and System.Drawing 64 bit clean
> 
> >                              Hi,
> >
> >  The attached patch attempts to fix 64 bit issues in libgdiplus and
> >Sys.Drawing.
> >In addition to this patch, there are some warnings in graphics.c
> >because sometimes hDC is treated as an int and sometimes as a pointer.
> >I don't know which
> >one is correct, so the patch doesn't touch these.
> >
> >graphics.c: In function `GdipCreateFromHDC':
> >graphics.c:294: warning: cast to pointer from integer of different size
> >graphics.c: In function `GdipCreateFromHWND':
> >graphics.c:320: warning: cast from pointer to integer of different size
> >graphics.c:329: warning: cast from pointer to integer of different size
> >graphics.c: In function `GdipGetDC':
> >graphics.c:398: warning: cast from pointer to integer of different size
> >graphics.c: In function `GdipReleaseDC':
> >graphics.c:406: warning: cast from pointer to integer of different size
> >
> 
>



More information about the Mono-devel-list mailing list