Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-Filersrc_load()rsrc_rcfix()Resource Libraryrsrc_obfix() AESSyntaxWORD rsrc_obfix( tree, obj )
OBJECT *tree;
WORD obj;
Function rsrc_obfix() converts an object's coordinates from
character-based to pixel-based.
Opcode 114 (0x72)
Availability All AESversions.
Parameters tree specifies the OBJECT tree containing the object obj to
convert.
Binding intin[0] = obj;
addrin[0] = tree;
return crys_if(0x72);
Return Value rsrc_obfix() always returns a 0.
Comments All objects in '.RSC' files have their coordinates based on
character positions rather than screen coordinates to allow
an object tree to be shown in any resolution. This function
converts those character coordinates to pixel coordinates
based on the current screen resolution.
See Also rsrc_load(), rsrc_rcfix()Group Resource Library