On 13 Apr 2005 17:11:57 +0200, you wrote:
Rein Klazes wijn@wanadoo.nl writes:
--- wine/dlls/x11drv/dib.c 2005-04-13 08:55:39.000000000 +0200 +++ mywine/dlls/x11drv/dib.c 2005-04-13 13:24:10.000000000 +0200 @@ -3484,6 +3484,41 @@ static void X11DRV_DIB_GetImageBits_32( } }
+static int XGetSubImageErrorHandler(Display *dpy, XErrorEvent *event, void *arg) +{
- return 1;
+}
You should check that this was really a BadMatch error from XGetSubImage, we don't want to blindly ignore all errors.
I think you want this.
Changelog: dlls/x11drv : dib.c
In X11DRV_DIB_SetImageBits avoid BadMatch errors when calling XGetSubImage.
Rein.