resolve drawing direction