1727c1727 < int res; --- > int res; int i; 1742c1742,1745 < res = SetDIBitsToDevice(hDC,0,0,width,height,0,0,0,height,image->data,&bmInfo,DIB_RGB_COLORS); --- > for (i=0; i < height; i++) { > res = SetDIBitsToDevice(hDC,dx,dy+i,width,1,sx,sy+i,0,i+1,image->data,&bmInfo,DIB_RGB_COLORS); > if (res==0) break; > }
Obviously, you have to replace the 'c:\cygwin\bin' with the ms-dos path name of your /bin directory. You also *must* use Windows tools (e.g., "copy" or GUI "drag and drop") to copy the DLL to its new home since you can't easily overwrite a busy DLL.