Quote Originally Posted by Ultra
1) When I attempt to alpha-blend using DrawAlpha (or DrawAlphaRotate), the image becomes transparent...but green! Why is this happening, and how can I make it become normally transparent?
Step 1:
Proceed to File...Open?¢_¬¶ DelphiX_for5.dpk (or 4)and Delphi 6 will convert the package for you
Resave the package as DelphiX_for6.dpk.

Step 2:
Open DXRender.pas
The first type of error you will need to correct is an Operand Size Mismatch error. There are 40 to 50 errors of this type.

The fix is simple...

mov eax,Dest; add eax,TDXRMachine_Color.R+1 // bad statement

?¢_¬¶change to?¢_¬¶

mov eax,Dest; add eax,BYTE(TDXRMachine_Color.R+1) // good statement

This simply asks for the lower 8 bits of TDXRMachine_Color.R ?¢_" you will need to do this for every ASM reference to TDXRMachine_Color. It can be accomplished with a Search and Replace.

step 3:
The second type of error you will need to correct is an Inline Assember Syntax error. There are 10 to 20 errors of this type, and they always occur around _AddTable and _SubTable in the source. The fix is just as simple...

movzx edx,byte [offset _AddTable+edx+ebx]

?¢_¬¶change to?¢_¬¶

movzx edx,byte [offset (_AddTable+edx+ebx)]

After all these errors have been addressed compiling the package will show only one warning .
Step 4:

save DXRender.pas and reinstalling DelphiX