[Mono-winforms-list] [PATCH] fix testgdi
Yoichi NAKAYAMA
nakayama at pixela.co.jp
Tue Oct 2 23:18:02 EDT 2007
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,
--
Yoichi NAKAYAMA
Pixela Corporation
More information about the Mono-winforms-list
mailing list