Permalink
Browse files

2007-10-04 Sebastien Pouliot <sebastien@ximian.com>

	* testgdi.c: Fix segfault. Patch by Yoichi NAKAYAMA.


svn path=/trunk/libgdiplus/; revision=86892
  • Loading branch information...
1 parent a909e1e commit 672ac928629aa6ba64ca1612b34e7a9a72821218 Sebastien Pouliot committed Oct 4, 2007
Showing with 5 additions and 6 deletions.
  1. +4 −0 tests/ChangeLog
  2. +1 −6 tests/testgdi.c
View
@@ -1,3 +1,7 @@
+2007-10-04 Sebastien Pouliot <sebastien@ximian.com>
+
+ * testgdi.c: Fix segfault. Patch by Yoichi NAKAYAMA.
+
2007-07-31 Sebastien Pouliot <sebastien@ximian.com>
* Makefile.am: Add two new tests;
View
@@ -44,15 +44,10 @@ win_draw(win_t *win)
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;

0 comments on commit 672ac92

Please sign in to comment.