rom chart
fixed swapxy=1 bug