[Mono-winforms-list] [PATCH] fix testgdi

Sebastien Pouliot sebastien at ximian.com
Thu Oct 4 13:27:03 EDT 2007


Patch applied to SVN.

Thanks!
Sebastien

On Wed, 2007-10-03 at 12:18 +0900, Yoichi NAKAYAMA wrote:
> Hi,
> 
> testgdi program included in libgdiplus package has been broken
> and causes runtime error. Following patch will fix it.
> 
> * testgdi.c: Fix runtime error and remove unnecessary surface creation.
> 
> --- testgdi.c   (revision 86729)
> +++ testgdi.c   (working copy)
> @@ -44,15 +44,9 @@
>         GpStatus st;
>         GpImage *img;
>         gunichar2 *unis;
> -       cairo_surface_t *surface;
> 
>         XClearWindow(win->dpy, win->win);
> -
> -       surface = cairo_xlib_surface_create(win->dpy, win->win,
> -                                           DefaultVisual(win->dpy, DefaultScreen(win->dpy)),
> -                                           win->width, win->height);
> -
> -       GdipCreateFromXDrawable_linux (NULL, NULL, &gp);
> +        GdipCreateFromXDrawable_linux (win->win, win->dpy, &gp);
>          {
>                 GpPen *pen;
>                 GpSolidFill *brush;
> 
> 
> Best regards,



More information about the Mono-winforms-list mailing list