anchor.diff: -unit KM_Controls;
  +﻿unit KM_Controls;
   {$I KaM_Remake.inc}
   interface
   uses
  
positive.code: function TKMControl.GetDrawRect: TKMRect;
  begin
    if fParent <> nil then
    begin
      Result := fParent.GetDrawRect;
      Result := KMClipRect(Result, AbsDrawLeft, AbsDrawTop, AbsDrawRight, AbsDrawBottom);
    end else
      Result := KMRect(AbsDrawLeft, AbsDrawTop, AbsDrawRight, AbsDrawBottom);
  end;
  
negative.code: // Check Control including all its Parents to see if Control is actually displayed/visible
  function TKMControl.GetVisible: Boolean;
  begin
    if Self = nil then Exit(False);
  
    Result := fVisible and ((Parent = nil) or Parent.Visible);
  end;
  
  