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

      @pendingChanges = []

    if @offscreenFirstRow?
      @context.drawImage(@offscreenCanvas, 0, (@offscreenFirstRow-firstRow) * 2)
      if firstRow < @offscreenFirstRow
        @drawLines(firstRow, @offscreenFirstRow, 0, @context)
      if lastRow > @offscreenLastRow


  drawLines: (firstRow, lastRow, offsetRow, context) ->
    lines = @editor.linesForScreenRows(firstRow, lastRow)
    lineHeight = @getLineHeight()
    charHeight = @getCharHeight()
    charWidth = @getCharWidth()
    context.lineWidth = charHeight
    displayCodeHighlights = @minimapView.displayCodeHighlights

    for line, row in lines
      x = 0
      y = offsetRow + row
      for token in line.tokens
        w = token.screenDelta
        unless token.isOnlyWhitespace() or token.hasInvisibleCharacters
          color = if displayCodeHighlights then @getTokenColor(token) else @getDefaultColor()
          context.fillStyle = color
          chars = 0
          y0 = y*lineHeight
          for char in token.value
            if /\s/.test char
              if chars > 0
                context.fillRect(x-chars, y0, chars*charWidth, charHeight)
                context.fill()
              chars = 0
            else
              chars++

            x += charWidth

          if chars > 0
            context.fillRect(x-chars, y0, chars*charWidth, charHeight)
            context.fill()
        else
          x += w * charWidth

  update: =>
    return unless @editorView?
