anchor.diff:    begin
       R := fView.GetMinimapClip;
       if (R.Right - R.Left) * (R.Bottom - R.Top) > 0 then
  -      TKMRenderUI.WriteOutline(fNewLeft + Round(R.Left*fPaintWidth / fMinimap.MapX),
  -                          fNewTop  + Round(R.Top*fPaintHeight / fMinimap.MapY),
  -                          Round((R.Right - R.Left)*fPaintWidth / fMinimap.MapX),
  -                          Round((R.Bottom - R.Top)*fPaintHeight / fMinimap.MapY), 1, $FFFFFFFF);
  +      TKMRenderUI.WriteOutline(Left + fLeftOffset + Round(R.Left*fPaintWidth / fMinimap.MapX),
  +                               Top  + fTopOffset  + Round(R.Top*fPaintHeight / fMinimap.MapY),
  +                               Round((R.Right - R.Left)*fPaintWidth / fMinimap.MapX),
  +                               Round((R.Bottom - R.Top)*fPaintHeight / fMinimap.MapY), 1, $FFFFFFFF);
     end;
   
     if not fShowLocs then Exit;
  
positive.code: function TKMMinimapView.LocalToMapCoords(X,Y: Integer; const Inset: ShortInt = 0): TKMPoint;
  begin
    Assert(Inset >= -1, 'Min allowed inset is -1, to be within TKMPoint range of 0..n');
    Result.X := EnsureRange(Round((X - fNewLeft) * fMinimap.MapX / fPaintWidth),  1+Inset, fMinimap.MapX-Inset);
    Result.Y := EnsureRange(Round((Y - fNewTop)  * fMinimap.MapY / fPaintHeight), 1+Inset, fMinimap.MapY-Inset);
  end;
  
  
  function TKMMinimapView.MapCoordsToLocal(X,Y: Single; const Inset: ShortInt = 0): TKMPoint;
  begin
    Assert(Inset >= -1, 'Min allowed inset is -1, to be within TKMPoint range of 0..n');
    Result.X := fNewLeft + EnsureRange(Round(X * fPaintWidth /  fMinimap.MapX), Inset, fPaintWidth  - Inset);
    Result.Y := fNewTop  + EnsureRange(Round(Y * fPaintHeight / fMinimap.MapY), Inset, fPaintHeight - Inset);
  end;
  
  
  
negative.code:     Exit;
  
    if (fMinimap.MapTex.Tex <> 0) then
      TKMRenderUI.WriteTexture(Left + fLeftOffset, Top + fTopOffset, fPaintWidth, fPaintHeight, fMinimap.MapTex, $FFFFFFFF)
    else
      TKMRenderUI.WriteBevel(Left, Top, fWidth, fHeight);
  
  