Hi again

Finally I managed to solve almost every problem removing the line {$Define DrawHWAcc}. The graphics show in the right way but some problems still remain:

*If I use undelphix 1.07 when it loads the images with alpha it stays stopped for a moment. I tried to load them all at the beginning, but everytime that in the menu of the game i change a Timage or Canvas (activating an option to change the graphic of the button) is like it looses the memory of the sprites with alpha loaded, and it stops again a time when I try to re-paint then again. The result is tha before entering the circuit I have to load all sprites and takes about 15 seconds doing it. If I use the version 1.06 it doesn't stop and I get the same performance than 1.07 version.

*The problem with the cutting edges was solved removing the line {$Define DrawHWAcc} but only in the images without alpha, in the images with alpha the problem remains and edges are bud cut.

*Double precission, activating do3D I had problems with some calculation beacuse of DirectDraw puts the precission mode in simple.I can solve it doing SetPrecisionMode(pmDouble) after the DirectDraw.Inicialize, but it doesn't work in all computers. I think is a problem with permissions, but I didn't try. The solution will be to indicate to the DirectDraw before initializing not to change to simple precission mode, it can be done putting the flag D3DCREATE_FPU_PRESERVE in the call Direct3D.CreateDevice, but I cannot find that call. Where do I indicate that flag??

As you told me, the limit in the textures is 2048 pixels (when do3d activated) but if I remove the {$Define DrawHWAcc} line then the limit is only for sprites with alpha and only for people with ATI VGA's. The cars in my game are 36x36 pixels and 60 positions that were together in a simple line, the textures were 2160x36. Without alpha it works perfectly, but activating alpha the people with NVIDIA VGA's as no problems, but with ATI the cars shows cut. I solved putting 2 lines of 30 cars : 1080x72 pixels.

I have the following problems:

* Cutting edged with sprites with Alpha.
* Add the flag D3DCREATE_FPU_PRESERVE in the call Direct3D.CreateDevice
* Stop of some seconds the first time I paint a sprite with alpha with undelphi 1.07 (With 1.06 works well).

Regards...