mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +02:00
+ 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 -
This commit is contained in:
parent
e3df1e1da8
commit
5b4529db6f
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user