 
 
   getMinimapHeight: -> @getLinesCount() * @getLineHeight()
-  getLineHeight: -> 2
+  getLineHeight: -> 3
+  getCharHeight: -> 2
+  getCharWidth: -> 1
   getLinesCount: -> @editorView.getEditor().getScreenLineCount()
 
   getMinimapScreenHeight: -> @minimapView.height() #/ @minimapView.scaleY


  drawLines: (firstRow, lastRow, offsetRow, context) ->
    lines = @editor.linesForScreenRows(firstRow, lastRow)
    context.lineWidth = 1
    lineHeight = @getLineHeight()

    if @minimapView.displayCodeHighlights
      for line, row in lines
        x = 0
        y = offsetRow + row
        for token in line.tokens
          w = token.screenDelta
          if not token.isOnlyWhitespace()
            color = @getTokenColor(token)
            context.beginPath()
            context.strokeStyle = color
            context.moveTo(x, y*lineHeight)
            context.lineTo(x+w, y*lineHeight)
            context.stroke()
          x += w
    else
      context.strokeStyle = "#C0C0C0"
      context.beginPath()
      for line, row in lines
        w = line.text.length
        y = offsetRow + row
        if w > 0
          w0 = line.indentLevel * 2
          context.moveTo(w0, y*lineHeight+0.5)
          context.lineTo(w, y*lineHeight+0.5)
      context.stroke()

  update: =>
    return unless @editorView?

    screenRow = 0 if isNaN(screenRow)
    screenRow

  getDefaultColor: -> @defaultColor ||= @minimapView.editorView.css('color')

  retrieveTokenColorFromDom: (token)->
    # This function insert a dummy token element in the DOM compute its style,
