Skip to content

Conversation

@mgrinzPlayer
Copy link
Contributor

No description provided.

@mgrinzPlayer
Copy link
Contributor Author

or maybe this:

Index: d3dhookUnit.pas
===================================================================
--- d3dhookUnit.pas	(wersja 2822)
+++ d3dhookUnit.pas	(kopia robocza)
@@ -1095,10 +1095,11 @@
   x, y: Integer;
   Line: PColor32Array;
 
-  c: longint;
-  ColorKey: TColor32 absolute c;
+  R,G,B: Integer;
 begin
-  c:=ColorToRGB(aPng.TransparentColor);
+  R := aPng.TransparentColor and $ff;
+  G := (aPng.TransparentColor shr 8) and $ff;
+  B := (aPng.TransparentColor shr 16) and $ff;  
 
   for y := 0 to aPNG.Height - 1 do
   begin
@@ -1105,7 +1106,7 @@
     Line := aPNG.ScanLine[y];
     for x := 0 to aPNG.Width - 1 do
     begin
-      if (Line^[x].R=ColorKey.R) and (Line^[x].G=ColorKey.G)  and (Line^[x].B=ColorKey.B) then
+      if (Line^[x].R=R) and (Line^[x].G=G)  and (Line^[x].B=B) then
         Line^[x].A := 0 //100% see through
       else
         Line^[x].A := 255;

@cheat-engine
Copy link
Owner

looks ok. i'll implement that

@cheat-engine
Copy link
Owner

should work now

@mgrinzPlayer mgrinzPlayer deleted the fix-FixAlpha branch December 14, 2016 16:37
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.

2 participants