Why are the sprite sizes quoted by !Paint and the values used by BASIC so different??

Why are the sprite sizes quoted by !Paint and the values used by BASIC so different??

Post by druc » Fri, 16 Nov 2007 07:09:13



Sprites are in pixels, screen coordinates for the VDU system are in OS
units. Most square pixel modes modes have 2 OS units per pixel,
therefor the half size you are seeing.


The factors you are after are XEigFactor and YEigFactor which can be
read from OS_ReadVduVariables or OS_ReadModeVariable

Pixels = OSUnits >> EigFactor;
OSUnits = Pixels << EigFactor;

---druck

--
The ARM Club Free Software - http://www.yqcomputer.com/
The 32bit Conversions Page - http://www.yqcomputer.com/
 
 
 

Why are the sprite sizes quoted by !Paint and the values used by BASIC so different??

Post by garethloc » Fri, 16 Nov 2007 09:54:41


Thanks druck...
If you could give me the SYS call eg what values to grab from it, then
I'll post you the finished program when it's done...