blackvoid
19-03-2005, 12:41 PM
Hi,
We just converted our game to unDelphix/Delphi 7 from Delhix/Delphi 5.
The good news that the game runs without any change to the code.
The bad news is that all the sprites and the mouse cursor are displaced. In DelphiX when we gave coordinates to a sprite, the middle of the sprite was put at the coordinates. In UnDelphix the top left corner of the sprite is drawn at the coordinates.
It is easy enough to add to each coordinate half the width and half the height of the sprite. In DelphiX we did not have to deal with this, so many areas will need to be rewritten. It seems to be easier to correct this in the unDelphiX source code, but where?
Also we have no idea why the mouse cursor is also displaced...
Why was this changed and why is the change not listed anywhere?
Help appreciated. Thanks.
We just converted our game to unDelphix/Delphi 7 from Delhix/Delphi 5.
The good news that the game runs without any change to the code.
The bad news is that all the sprites and the mouse cursor are displaced. In DelphiX when we gave coordinates to a sprite, the middle of the sprite was put at the coordinates. In UnDelphix the top left corner of the sprite is drawn at the coordinates.
It is easy enough to add to each coordinate half the width and half the height of the sprite. In DelphiX we did not have to deal with this, so many areas will need to be rewritten. It seems to be easier to correct this in the unDelphiX source code, but where?
Also we have no idea why the mouse cursor is also displaced...
Why was this changed and why is the change not listed anywhere?
Help appreciated. Thanks.