Improve DrawLineNumbersPanel performance

Only draw the line numbers of visible lines