Thanks Jerry, your second patch solved the bug 1715 against Wine-20030911. There are still lots of errorr messages: err:x11drv:X11DRV_CreateBitmap Trying to make bitmap with planes=1, bpp=4 but these seem harmless. Jarkko Lavinen