  void DrawStyledText(Surface *surface, const ViewStyle &vs, int styleOffset, PRectangle rcText,
  	const StyledText &st, size_t start, size_t length, DrawPhase phase);
  
-+typedef void (*DrawTabArrowFn)(Surface *, PRectangle, int);
++typedef void (*DrawTabArrowFn)(Surface *surface, PRectangle rcTab, int ymid);
 +
  /**
  * EditView draws the main text area.

 namespace Scintilla {
 #endif
 
+typedef void (*DrawLineMarkerFn)(Surface *, PRectangle &, Font &, int, int, const void *);
+
 /**
  */

 		SetSelection(newPos);
 	}
-	if (((curTime - lastClickTime) < Platform::DoubleClickTime()) && Close(pt, lastClick)) {
+	if (((curTime - lastClickTime) < Platform::DoubleClickTime()) && Close(pt, lastClick, doubleClickCloseThreshold)) {
 		//Platform::DebugPrintf("Double click %d %d = %d\n", curTime, lastClickTime, curTime - lastClickTime);
 		SetMouseCapture(true);
 		if (FineTickerAvailable()) {
