X11DRV_DIB_CreateDIBFromPixmap and simplified the code a bit.
Attach a file by drag & drop or click to upload