Browse Source

* copy operator of TEnhancedVideoCell now copies the 8-bit foreground and background colors

Nikolay Nikolov 3 years ago
parent
commit
3eae0213be
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/rtl-console/src/inc/video.inc

+ 2 - 1
packages/rtl-console/src/inc/video.inc

@@ -113,7 +113,8 @@ end;
 class operator TEnhancedVideoCell.Copy(constref aSrc: TEnhancedVideoCell; var aDst: TEnhancedVideoCell);
 class operator TEnhancedVideoCell.Copy(constref aSrc: TEnhancedVideoCell; var aDst: TEnhancedVideoCell);
 begin
 begin
   aDst.ExtendedGraphemeCluster := aSrc.ExtendedGraphemeCluster;
   aDst.ExtendedGraphemeCluster := aSrc.ExtendedGraphemeCluster;
-  aDst.Attribute := aSrc.Attribute;
+  aDst.FForegroundColor := aSrc.FForegroundColor;
+  aDst.FBackgroundColor := aSrc.FBackgroundColor;
 end;
 end;
 
 
 Const
 Const