Browse Source

+ introduced SetWriteModeEx to the Graph unit. Unlike SetWriteMode, it allows
setting the current write mode to any mode, such as NormalPut/CopyPut, XorPut,
OrPut, AndPut or NotPut. For comparison, SetWriteMode only allows NormalPut/
CopyPut and XorPut. Fixes Mantis #30773.

git-svn-id: trunk@40903 -

nickysn 6 years ago
parent
commit
5b4529db6f
2 changed files with 8 additions and 0 deletions
  1. 7 0
      packages/graph/src/inc/graph.inc
  2. 1 0
      packages/graph/src/inc/graphh.inc

+ 7 - 0
packages/graph/src/inc/graph.inc

@@ -1991,6 +1991,13 @@ end;
    end;
 
 
+  procedure SetWriteModeEx(WriteMode : smallint);
+   begin
+     if (WriteMode >= CopyPut) and (WriteMode <= NotPut) then
+       CurrentWriteMode := WriteMode;
+   end;
+
+
   procedure GetFillSettings(var Fillinfo:Fillsettingstype);
    begin
      Fillinfo:=Fillsettings;

+ 1 - 0
packages/graph/src/inc/graphh.inc

@@ -758,6 +758,7 @@ procedure GraphDefaults;
 procedure ClearDevice;
 procedure GetViewSettings(var viewport : ViewPortType);
 procedure SetWriteMode(WriteMode : smallint);
+procedure SetWriteModeEx(WriteMode : smallint);
 procedure GetFillSettings(var Fillinfo:Fillsettingstype);
 procedure GetFillPattern(var FillPattern:FillPatternType);
 procedure GetLineSettings(var ActiveLineInfo : LineSettingsType);