'scanline' is not used again after assigning to dst.  Just call the parameter 'dst' and skip the assignment.