Fixes several problems with SetDIBitsToDevice if xSrc != 0.