| N F O _ F I N D G F X R E S O ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English
AMIGA - NFO_#?
----------------------------------------------------------------------------
NAME
nfo_findgfxreso() - Allows to find modeid according to
the resolution.
SYNOPSIS
modeid = nfo_findgfxreso(resox, resoy, depth, flags,
rlow, rhigh);
ULONG nfo_findgfxreso(ULONG, ULONG, ULONG, ULONG,
ULONG, ULONG);
FUNCTION
This function allows to find 'modeid' of a given reso.
in the monitor database.
INPUTS
resox - First resolution argument.
resoy - Second resolution argument.
depth - Depth in bits(1 to 32).
flags - Property flags(can be 0).
rlow - Low range argument.
rhigh - High range argument.
RETURNS
Returns modeid or INVALID_ID.
BASES
GfxBase, MathIeeeXXXXBasBase
NOTES
Arg. 'flags' is what 'graphics/displayinfo.h' defines.
New flags are:
DIPF_IS_YCOFACT - Allows to skew the Y resolution arg.
so neighbour resolutions can be used. For instance if
you request 640x400, but the system lacks it and there
is something close to it like 640x480 or 640x512 then
it will be utilised.
DIPF_IS_SIMILAR - This flag will allow the final reso.
to be smaller than what you expect. For example, lets
say that you want 640x400, but the highest available
resolution right now is 320x200, so it will be picked.
You can combine DIPF_IS_YCOFACT with this flag too.
If you want to increase probability of matching color
mapped screenmode then always pass 2 in the 'depth'.
Function will do incrementory steps until 8 bits.
If you want to increase probability of matching RGB
screenmode then always pass 32 in the 'depth'. Func.
will do the decrementory steps until 15 bits.
SEE ALSO
nfo_findgfxsm(), nfo_findgfxentry(),
nfo_findgfxrange()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |