No real changes, just avoid repeating wxRound(scaleFactor*72) in several places and do it in this single function instead.