Skip to content

fixed work with sets and renamed a grayscale color conversion function#3

Open
AndrewBJ wants to merge 1 commit into
bmitov:masterfrom
AndrewBJ:Fixes
Open

fixed work with sets and renamed a grayscale color conversion function#3
AndrewBJ wants to merge 1 commit into
bmitov:masterfrom
AndrewBJ:Fixes

Conversation

@AndrewBJ
Copy link
Copy Markdown

The problem with a clMaroon(=$00000080) parameter which is TColor but a function (AGrayScale : Byte) called

function  MakeColor( AColor : TColor ) : TAlphaColor; overload;
function  MakeColor( AGrayScale : Byte ) : TAlphaColor; overload;

A grayscale functions shouldis renamed to MakeGrayScaleColor since there is already such a function for make a grayscale color

Incorrect conversion of sets to integers, which led to passing garbage values to api, and as a result - unstable work.
Conversions PInteger(@ASet)^ are changed to SetToInt(ASet, SizeOf(ASet))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant