 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Henrik Bruhn Guest
|
Posted: Fri Jul 07, 2006 8:11 am Post subject: How to mirror cursor |
|
|
Hi
I want to mirror the crHandpoint cursor so it is turned upside down and
points down instead of up. How to do that?
Henrik |
|
| Back to top |
|
 |
Henrik Bruhn Guest
|
Posted: Fri Jul 07, 2006 7:46 pm Post subject: Re: How to mirror cursor |
|
|
Hi
Found the solution
Read the cursorfile into TC, mirror the AND and XOR planes and write back
the cursor file.
Then use resource workshop to set the hotspot.
Henrik
----------------------------------
type
TPlane= array[0..31] of integer;
TC = packed record
Bytes: array[0..69] of byte;
XORPlane, ANDPlane: TPlane;
end;
procedure MirrorPlane(var Plane: TPlane);
var
n: integer;
Temp: integer;
begin
for n:= 0 to 15 do begin
Temp:= Plane[n];
Plane[n]:= Plane[31-n];
Plane[31-n]:= Temp;
end;
end; |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|