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; > }