anchor.diff:      Exit;
   
     if (fMinimap.MapTex.Tex <> 0) then
  -    TKMRenderUI.WriteTexture(fNewLeft, fNewTop, fPaintWidth, fPaintHeight, fMinimap.MapTex, $FFFFFFFF)
  +    TKMRenderUI.WriteTexture(Left + fLeftOffset, Top + fTopOffset, fPaintWidth, fPaintHeight, fMinimap.MapTex, $FFFFFFFF)
     else
       TKMRenderUI.WriteBevel(Left, Top, fWidth, fHeight);
   
  
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:     fView: TViewport;
      fPaintWidth: Integer;
      fPaintHeight: Integer;
      fLeftOffset: Integer;
      fTopOffset: Integer;
  
      fOnChange, fOnMinimapClick: TPointEvent;
      fShowLocs: Boolean;
  