Skip to content

Commit

Permalink
Slightly improve memrec changecolor procedure
Browse files Browse the repository at this point in the history
Useful for color adjustments e.g. from lime rgb(0, 255, 0) to dark green rgb(0, 80, 0)
  • Loading branch information
mgrinzPlayer authored Feb 10, 2019
1 parent 04b3b77 commit 4a0498d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Cheat Engine/MainUnit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3783,11 +3783,13 @@ procedure TMainForm.miChangeColorClick(Sender: TObject);
var
i: integer;
begin
if (addresslist.SelCount > 0) and (colordialog1.Execute) then
if (addresslist.SelCount > 0) then
begin
for i := 0 to addresslist.Count - 1 do
if addresslist[i].isSelected then
addresslist[i].color := colordialog1.Color;
colordialog1.Color:=addresslist.selectedRecord.Color;
if (colordialog1.Execute) then
for i := 0 to addresslist.Count - 1 do
if addresslist[i].isSelected then
addresslist[i].color := colordialog1.Color;
end;
end;

Expand Down

0 comments on commit 4a0498d

Please sign in to comment.