ypos = int(screenpos[1] + ix * y_step + border)